Skip to content

Commit

Permalink
Include Purpose 11 in Cypress Test (#1449)
Browse files Browse the repository at this point in the history
* Add purpose 11

* Update sourcepoint-tcfv2.cy.js
  • Loading branch information
akinsola-guardian committed May 16, 2024
1 parent 0ff4990 commit 00ff437
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Interaction', () => {
// eslint-disable-next-line cypress/no-unnecessary-waiting -- should we do this?
cy.wait(2000);

[(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)].forEach((purpose) => {
[(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)].forEach((purpose) => {
cy.get(`[data-purpose="${purpose}"]`).should(
'have.data',
'consent',
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('Interaction', () => {
.should('have.data', 'consent')
.should('equal', false);

[2, 3, 4, 5, 6, 7, 8, 9, 10].forEach((purpose) => {
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11].forEach((purpose) => {
cy.get(`[data-purpose="${purpose}"]`)
.should('have.data', 'consent')
.should('equal', true);
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('Interaction', () => {
.should('have.data', 'consent')
.should('equal', true);

[2, 3, 4, 5, 6, 7, 8, 9, 10].forEach((purpose) => {
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11].forEach((purpose) => {
cy.get(`[data-purpose="${purpose}"]`)
.should('have.data', 'consent')
.should('equal', false);
Expand Down

0 comments on commit 00ff437

Please sign in to comment.