-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/ppdsc 2208 Fix svg previewer: remove sourcepoint and tealium in d…
…ev (#276) * docs(PPDSC-0000): testing permissions * docs(PPDSC-0000): removing test changed from readme * fix(PPDSC-2208): implemented conditional for tealium and sorcpoint scrip * fix(PPDSC-2208): remove scripts from dev * fix(PPDSC-2208): removing e2e tests for consent
- Loading branch information
Showing
2 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
describe('Consent component', () => { | ||
it('should show up and verify cookie banner does not pop up anymore once user accepts the cookie consent', () => { | ||
// They have been set for the previous tests in order to be able to run them correctly. | ||
// For the purpose of the following test they need to be cleared first. | ||
cy.clearCookie('euconsent-v2'); | ||
cy.clearCookie('consentUUID'); | ||
// Removed with the PR: https://github.com/newscorp-ghfb/newskit/pull/276 | ||
// TODO bring it back once put back for dev environment | ||
// describe('Consent component', () => { | ||
// it('should show up and verify cookie banner does not pop up anymore once user accepts the cookie consent', () => { | ||
// // They have been set for the previous tests in order to be able to run them correctly. | ||
// // For the purpose of the following test they need to be cleared first. | ||
// cy.clearCookie('euconsent-v2'); | ||
// cy.clearCookie('consentUUID'); | ||
|
||
cy.visit('/'); | ||
const iFrame = "iframe[id^='sp_message_iframe']"; | ||
cy.get(iFrame, {timeout: 10000}).should('be.visible'); | ||
cy.acceptCookieBanner(); | ||
// Non TCF and TCF behave differently in this regard,hidden and removed respectively, we need to support both during switch over | ||
// TODO: uncomment once PPDSC-1504 released | ||
cy.get(iFrame).should('not.exist'); | ||
cy.reload(); | ||
cy.get(iFrame, {timeout: 10000}).should('not.exist'); | ||
}); | ||
}); | ||
// cy.visit('/'); | ||
// const iFrame = "iframe[id^='sp_message_iframe']"; | ||
// cy.get(iFrame, {timeout: 10000}).should('be.visible'); | ||
// cy.acceptCookieBanner(); | ||
// // Non TCF and TCF behave differently in this regard,hidden and removed respectively, we need to support both during switch over | ||
// // TODO: uncomment once PPDSC-1504 released | ||
// cy.get(iFrame).should('not.exist'); | ||
// cy.reload(); | ||
// cy.get(iFrame, {timeout: 10000}).should('not.exist'); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters