mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
cb38a2d997
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.
17 lines
551 B
JavaScript
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/);
|
|
});
|
|
});
|
|
});
|