Ghost/ghost/core/test/e2e-browser/admin/setup.spec.js
Sam Lord cb38a2d997 Enable parallel running of browser tests
refs: https://github.com/TryGhost/DevOps/issues/78

Instead of running a single instance of Ghost, we now run an instance of Ghost for each test worker.

This has the unfortunate effect that a test failing will close and restart a new instance of Ghost, but in general will be multiple times faster than sequential execution of tests.
2023-10-12 14:33:20 +01:00

17 lines
551 B
JavaScript

const {expect} = require('@playwright/test');
const test = require('../fixtures/ghost-test');
test.describe('Admin', () => {
test.describe('Setup', () => {
test('Loads Admin', async ({page}) => {
const response = await page.goto('/ghost');
expect(response.status()).toEqual(200);
});
test('Is setup correctly', async ({page}) => {
await page.goto('/ghost');
await expect(page.locator('.gh-nav-menu-details-sitetitle')).toHaveText(/The Local Test/);
});
});
});