mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
d04abc90b4
- this helps differentiate between the different tests we have available
16 lines
509 B
JavaScript
16 lines
509 B
JavaScript
const {expect, test} = require('@playwright/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/);
|
|
});
|
|
});
|
|
});
|