From ef20982074860d6c1bae990e132d1e3680d733a1 Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Tue, 24 Oct 2023 08:41:51 -0700 Subject: [PATCH] fix: set localStorage in createOrg PAYG tests --- cypress/e2e/cloud/createOrg.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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})