mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
ccbcba0969
refs: https://github.com/TryGhost/DevOps/issues/78 This speeds up the tests by another 30 seconds on my local machine, and hopefully takes some time off in CI too
17 lines
581 B
JavaScript
17 lines
581 B
JavaScript
const {expect} = require('@playwright/test');
|
|
const test = require('../fixtures/ghost-test');
|
|
|
|
test.describe('Admin', () => {
|
|
test.describe('Setup', () => {
|
|
test('Loads Admin', async ({sharedPage}) => {
|
|
const response = await sharedPage.goto('/ghost');
|
|
expect(response.status()).toEqual(200);
|
|
});
|
|
|
|
test('Is setup correctly', async ({sharedPage}) => {
|
|
await sharedPage.goto('/ghost');
|
|
await expect(sharedPage.locator('.gh-nav-menu-details-sitetitle')).toHaveText(/The Local Test/);
|
|
});
|
|
});
|
|
});
|