mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed offers playwright test for one-time discount
refs aa693039a3
- one-time offer discounts are no longer shown to member in Portal settings, as portal shows only the next payment info.
This commit is contained in:
parent
521b25fa84
commit
199d8644a5
1 changed files with 5 additions and 1 deletions
|
@ -66,6 +66,8 @@ test.describe('Portal', () => {
|
|||
monthlyPrice: 6,
|
||||
yearlyPrice: 60
|
||||
});
|
||||
|
||||
// Creates a one-time discount offer for 10% off
|
||||
const offerName = await createOffer(page, {
|
||||
name: 'Black Friday Special',
|
||||
tierName: tierName,
|
||||
|
@ -93,7 +95,9 @@ test.describe('Portal', () => {
|
|||
|
||||
await page.waitForSelector('h1.site-title', {state: 'visible'});
|
||||
await portalTriggerButton.click();
|
||||
await expect(portalFrame.locator('text=$5.40/month'), 'Portal should show discounted price').toBeVisible();
|
||||
|
||||
// Discounted price should not be visible for member for one-time offers
|
||||
await expect(portalFrame.locator('text=$5.40/month'), 'Portal should show discounted price').not.toBeVisible();
|
||||
await page.goto('/ghost');
|
||||
await page.locator('.gh-nav a[href="#/members/"]').click();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue