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', () => {
|
2023-10-16 18:32:13 +03:00
|
|
|
test('Loads Admin', async ({sharedPage}) => {
|
|
|
|
const response = await sharedPage.goto('/ghost');
|
2022-12-06 15:18:16 +03:00
|
|
|
expect(response.status()).toEqual(200);
|
|
|
|
});
|
2022-12-06 15:05:58 +03:00
|
|
|
|
2023-10-16 18:32:13 +03:00
|
|
|
test('Is setup correctly', async ({sharedPage}) => {
|
|
|
|
await sharedPage.goto('/ghost');
|
|
|
|
await expect(sharedPage.locator('.gh-nav-menu-details-sitetitle')).toHaveText(/The Local Test/);
|
2022-12-06 15:18:16 +03:00
|
|
|
});
|
2022-12-06 15:05:58 +03:00
|
|
|
});
|
|
|
|
});
|