ccbcba0969
refs: https://github.com/TryGhost/DevOps/issues/78 This speeds up the tests by another 30 seconds on my local machine, and hopefully takes some time off in CI too
15 lines
626 B
JavaScript
15 lines
626 B
JavaScript
const {expect} = require('@playwright/test');
|
|
const test = require('../fixtures/ghost-test');
|
|
|
|
test.describe('Admin', () => {
|
|
test.describe('Posts', () => {
|
|
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}/);
|
|
});
|
|
});
|
|
});
|