mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Increased timeout to allow for delays in browser e2e test
- this test was randomly timing out, and the tests above allow for a greater timeout before failing
This commit is contained in:
parent
2f57e95a5d
commit
2edfd8b8e0
@ -143,13 +143,13 @@ test.describe('Portal', () => {
|
|||||||
|
|
||||||
// open portal and check that member has been upgraded to paid tier
|
// open portal and check that member has been upgraded to paid tier
|
||||||
await portalTriggerButton.click();
|
await portalTriggerButton.click();
|
||||||
await expect(portalFrame.getByText('$50.00/year')).toBeVisible();
|
await expect(portalFrame.getByText('$50.00/year')).toBeVisible({timeout: 10000});
|
||||||
await expect(portalFrame.getByRole('heading', {name: 'Billing info'})).toBeVisible();
|
await expect(portalFrame.getByRole('heading', {name: 'Billing info'})).toBeVisible({timeout: 10000});
|
||||||
await expect(portalFrame.getByText('**** **** **** 4242')).toBeVisible();
|
await expect(portalFrame.getByText('**** **** **** 4242')).toBeVisible({timeout: 10000});
|
||||||
|
|
||||||
// check that member has been upgraded in admin and a tier exists for them
|
// check that member has been upgraded in admin and a tier exists for them
|
||||||
await page.goto(memberUrl);
|
await page.goto(memberUrl);
|
||||||
await expect(page.locator('[data-test-tier]').first()).toBeVisible();
|
await expect(page.locator('[data-test-tier]').first()).toBeVisible({timeout: 10000});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user