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('Posts', () => {
|
2023-10-16 18:32:13 +03:00
|
|
|
test('Has a set of posts', async ({sharedPage}) => {
|
|
|
|
await sharedPage.goto('/ghost');
|
|
|
|
await sharedPage.locator('.gh-nav a[href="#/posts/"]').click();
|
|
|
|
await sharedPage.locator('.gh-post-list-title').first().click();
|
|
|
|
await sharedPage.locator('.settings-menu-toggle').click();
|
|
|
|
await expect(sharedPage.getByPlaceholder('YYYY-MM-DD')).toHaveValue(/[0-9]{4}-[0-9]{2}-[0-9]{2}/);
|
2022-12-06 15:18:16 +03:00
|
|
|
});
|
2022-12-06 15:05:58 +03:00
|
|
|
});
|
|
|
|
});
|