mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed member upgrade portal playwright test
refs b6db85a5d6
- portal upgrade test used duplicate email which caused the member creation to fail
- also updates the tier selection for checkout
This commit is contained in:
parent
b615c9f7d2
commit
e24a67b882
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ test.describe('Portal', () => {
|
|||
// create a new free member
|
||||
await createMember(page, {
|
||||
name: 'Testy McTest',
|
||||
email: 'testy@example.com',
|
||||
email: 'testy+upgradeportal@example.com',
|
||||
note: 'Testy McTest is a test member'
|
||||
});
|
||||
//get the url of the current member on admin
|
||||
|
@ -30,7 +30,8 @@ test.describe('Portal', () => {
|
|||
await portalTriggerButton.click();
|
||||
// view plans button only shows for free member
|
||||
await portalFrame.getByRole('button', {name: 'View plans'}).click();
|
||||
await portalFrame.getByRole('button', {name: 'Continue'}).click();
|
||||
// select the first tier for checkout
|
||||
await portalFrame.locator('.gh-portal-btn-product .gh-portal-btn').first().click();
|
||||
|
||||
// complete stripe checkout
|
||||
await completeStripeSubscription(page);
|
||||
|
|
Loading…
Add table
Reference in a new issue