Skip to content

Commit

Permalink
Merge pull request #593 from Lemoncode/feature/#545-QA-new-page-will-…
Browse files Browse the repository at this point in the history
…create-a-blank-thumb-page

Feature/#545 new page will create a blank thumb page
  • Loading branch information
brauliodiez authored Nov 28, 2024
2 parents 9914b49 + 237fc6b commit 3dd5b2c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions e2e/thumb-pages/create-new-thumb-page.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { test, expect } from '@playwright/test';

test('create-and-verify-new-thumb-page', async ({ page }) => {
await page.goto('');

await page.getByText('Pages').click();

await expect(page.getByText('Page 2', { exact: true })).toHaveCount(0);

const addButton = page.getByRole('button', { name: 'add new page' });
await expect(addButton).toBeVisible();
await addButton.click();

const siblingElement = page.getByText('Page 2', { exact: true });
const thumb = siblingElement.locator('..');
await expect(thumb).toBeVisible();
});
File renamed without changes.
File renamed without changes.

0 comments on commit 3dd5b2c

Please sign in to comment.