Skip to content

Commit

Permalink
Update richtext tests to be more realistic
Browse files Browse the repository at this point in the history
  • Loading branch information
NevilleS committed May 1, 2024
1 parent 9e67cc5 commit 3457664
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions clients/privacy-center/cypress/e2e/consent-banner.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,9 @@ describe("Consent overlay", () => {
options: Partial<FidesInitOptions> = {}
) => {
const HTMLDescription = `
<p>
This test is overriding the <pre>experience_config.description</pre> with
an <strong>HTML</strong> description, which is used to allow users to configure
banners with <a href='https://example.com'>clickable links</a> and...
</p>
<p>
...multiple paragraphs with ease. However, it's not enabled by default unless
the <pre>options.allowHTMLDescription</pre> flag is <pre>true</pre> to reduce
the likelihood of XSS attacks.
</p>
This test is overriding the <pre>experience_config.description</pre> with a <strong>HTML</strong> description, which is used to allow users to configure banners with <a href='https://example.com'>clickable links</a> and...
...multiple paragraphs with ease. However, it's not enabled by default unless the <pre>options.allowHTMLDescription</pre> flag is <pre>true</pre> to reduce the likelihood of XSS attacks.
`;
cy.fixture("consent/fidesjs_options_banner_modal.json").then(
(config) => {
Expand Down

0 comments on commit 3457664

Please sign in to comment.