2023-10-13 14:42:39 +03:00
|
|
|
const {expect} = require('@playwright/test');
|
|
|
|
const test = require('../fixtures/ghost-test');
|
2022-12-06 15:05:58 +03:00
|
|
|
|
2022-12-06 15:18:16 +03:00
|
|
|
test.describe('Admin', () => {
|
|
|
|
test.describe('Setup', () => {
|
|
|
|
test('Loads Admin', async ({page}) => {
|
|
|
|
const response = await page.goto('/ghost');
|
|
|
|
expect(response.status()).toEqual(200);
|
|
|
|
});
|
2022-12-06 15:05:58 +03:00
|
|
|
|
2022-12-06 15:18:16 +03:00
|
|
|
test('Is setup correctly', async ({page}) => {
|
|
|
|
await page.goto('/ghost');
|
|
|
|
await expect(page.locator('.gh-nav-menu-details-sitetitle')).toHaveText(/The Local Test/);
|
|
|
|
});
|
2022-12-06 15:05:58 +03:00
|
|
|
});
|
|
|
|
});
|