diff --git a/cypress/e2e/cloud/createOrg.test.ts b/cypress/e2e/cloud/createOrg.test.ts index 0ca2f993ec..2c6df3a8fa 100644 --- a/cypress/e2e/cloud/createOrg.test.ts +++ b/cypress/e2e/cloud/createOrg.test.ts @@ -156,10 +156,8 @@ const setupTest = (setupParams: SetupParams) => { // If a url is specified, start the test at that url. if (urlToVisit) { cy.visit(`orgs/${idpeOrgID}/` + urlToVisit) - cy.disableClickThroughAnnouncement() } else { cy.visit('/') - cy.disableClickThroughAnnouncement() } }) }) @@ -229,6 +227,10 @@ describe('Free account', () => { }) describe('PAYG account', () => { + beforeEach(() => { + cy.disableClickThroughAnnouncement() + }) + it('can create new orgs, if there are orgs left in the quota', () => { setupTest({accountType: 'pay_as_you_go', canCreateOrgs: true})