mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
More test improvements
no issue
This commit is contained in:
parent
a497d2ed85
commit
bf815adc5a
3 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,7 @@ const config = {
|
|||
expect: {
|
||||
timeout: 10000
|
||||
},
|
||||
workers: process.env.CI ? '100%' : (process.env.PLAYWRIGHT_SLOWMO ? 1 : undefined),
|
||||
reporter: [['list', {printSteps: true}]],
|
||||
use: {
|
||||
// Use a single browser since we can't simultaneously test multiple browsers
|
||||
|
|
|
@ -137,7 +137,7 @@ test.describe('Portal', () => {
|
|||
await page.locator('.gh-nav a[href="#/members/"]').click();
|
||||
|
||||
// 1 member, should be Testy, on Portal Tier
|
||||
await expect(page.getByRole('link', {name: 'Testy McTesterson example.com'}), 'Should have 1 paid member').toBeVisible();
|
||||
await expect(page.getByRole('link', {name: 'Testy McTesterson testy@example.com'}), 'Should have 1 paid member').toBeVisible();
|
||||
await expect(page.getByRole('link', {name: tierName}), `Paid member should be on ${tierName}`).toBeVisible();
|
||||
});
|
||||
|
||||
|
|
|
@ -54,6 +54,9 @@ test.describe('Portal', () => {
|
|||
});
|
||||
|
||||
test.describe('Upgrade: Single Tier', () => {
|
||||
// Because memberUrl is set during first test, we need to run these tests in series
|
||||
test.describe.configure({mode: 'serial'});
|
||||
|
||||
let memberUrl;
|
||||
const tierName = 'The Local Test';
|
||||
const member = {
|
||||
|
|
Loading…
Add table
Reference in a new issue