From be84593684be5abffccf42d4724be544051b8402 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Fri, 9 Dec 2022 07:46:03 +0100 Subject: [PATCH] Fixed offers archive test refs. https://github.com/TryGhost/Team/issues/2371 - deleteAllMembers was an unnecessary step - since there's a generated code appended to the name of the archived offer, it had to be shorter to avoid potential naming conflicts --- ghost/core/test/e2e-browser/portal/offers.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghost/core/test/e2e-browser/portal/offers.spec.js b/ghost/core/test/e2e-browser/portal/offers.spec.js index ba6383faa6..7cda6abb34 100644 --- a/ghost/core/test/e2e-browser/portal/offers.spec.js +++ b/ghost/core/test/e2e-browser/portal/offers.spec.js @@ -83,7 +83,6 @@ test.describe('Portal', () => { test('Archiving an offer', async ({page}) => { page.goto('/ghost'); - await deleteAllMembers(page); // Create a new tier to attach offer to const tierName = 'Portal Tier'; @@ -95,7 +94,7 @@ test.describe('Portal', () => { // Create an offer. This will be archived const offerName = await createOffer(page, { - name: 'Black Friday Special to be archived', + name: 'To be archived', tierName: tierName, offerType: 'discount', amount: 10