mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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:
parent
adae605555
commit
be84593684
1 changed files with 1 additions and 2 deletions
|
@ -83,7 +83,6 @@ test.describe('Portal', () => {
|
||||||
|
|
||||||
test('Archiving an offer', async ({page}) => {
|
test('Archiving an offer', async ({page}) => {
|
||||||
page.goto('/ghost');
|
page.goto('/ghost');
|
||||||
await deleteAllMembers(page);
|
|
||||||
|
|
||||||
// Create a new tier to attach offer to
|
// Create a new tier to attach offer to
|
||||||
const tierName = 'Portal Tier';
|
const tierName = 'Portal Tier';
|
||||||
|
@ -95,7 +94,7 @@ test.describe('Portal', () => {
|
||||||
|
|
||||||
// Create an offer. This will be archived
|
// Create an offer. This will be archived
|
||||||
const offerName = await createOffer(page, {
|
const offerName = await createOffer(page, {
|
||||||
name: 'Black Friday Special to be archived',
|
name: 'To be archived',
|
||||||
tierName: tierName,
|
tierName: tierName,
|
||||||
offerType: 'discount',
|
offerType: 'discount',
|
||||||
amount: 10
|
amount: 10
|
||||||
|
|
Loading…
Add table
Reference in a new issue