Skip to content

Commit

Permalink
repaired e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheridan Sunier authored and Sheridan Sunier committed Jul 26, 2023
1 parent 3a3814a commit 848f925
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 366 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

479 changes: 129 additions & 350 deletions dist/main.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/main.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/main.source.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html/e2e/MWPW-126169.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
}
},
hideCtaIds: ['ac578dee-f01b-3ea0-a282-2116619e4251'],
hideCtaTags: [],
sort: {
enabled: 'true',
defaultSort: 'customSort',
Expand Down
11 changes: 7 additions & 4 deletions react/src/js/components/Consonant/Helpers/JsonProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ export default class JsonProcessor {
isBookmarked: bookmarkedCardIds.some(i => i === card.id),
disableBookmarkIco: onlyShowBookmarks,
hideCtaId: hideCtaIds.some(i => i === card.id),
hideCtaTags: hideCtaTags.some((tag) => {
const re = new RegExp(tag);
return hasTag(re, card.tags);
}),
...((hideCtaTags.length && hideCtaTags[0] !== '')) ?
{
hideCtaTags: hideCtaTags.some((tag) => {
const re = new RegExp(tag);
return hasTag(re, card.tags);
}),
} : { hideCtaTags: false },
initial: {
title: getByPath(card, 'contentArea.title', ''),
description: getByPath(card, 'contentArea.description', ''),
Expand Down

0 comments on commit 848f925

Please sign in to comment.