mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
97e5ca1de6
- we should start to keep tests grouped by their area, so first we split by Admin tests and then Portal tests, and within that we split into setup/Tiers/Offers etc
12 lines
477 B
JavaScript
12 lines
477 B
JavaScript
const {expect, test} = require('@playwright/test');
|
|
|
|
test.describe('Posts', () => {
|
|
test('Has a set of posts', async ({page}) => {
|
|
await page.goto('/ghost');
|
|
await page.locator('.gh-nav a[href="#/posts/"]').click();
|
|
await page.locator('.gh-post-list-title').first().click();
|
|
await page.locator('.settings-menu-toggle').click();
|
|
await expect(page.getByPlaceholder('YYYY-MM-DD')).toHaveValue(/[0-9]{4}-[0-9]{2}-[0-9]{2}/);
|
|
});
|
|
});
|