Ghost/ghost/core/test/e2e-browser/admin/setup.spec.js
Daniel Lockyer d04abc90b4
Added test group names
- this helps differentiate between the different tests we have available
2022-12-06 19:18:16 +07:00

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/);
});
});
});