0
Fork 0
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:
Sam Lord 2023-10-10 15:12:10 +01:00 committed by Sam Lord
parent a497d2ed85
commit bf815adc5a
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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();
});

View file

@ -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 = {