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
This commit is contained in:
Peter Zimon 2022-12-09 07:46:03 +01:00
parent adae605555
commit be84593684

View File

@ -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