Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/playwright/tests/release-notes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('Direct navigation to single category returns the expected value - 3', asyn

// verify that categories are persisted when using pagination links
test('Direct navigation to paginated category page contains expected release note', async ({ page }) => {
await page.goto('/release-notes/3?category=drupal');
await page.goto('/release-notes/4?category=drupal');
const expectedString = 'Drush 5 and 7 are no longer available';
const h2s1 = await page.locator('h2').allTextContents();
expect(h2s1.some(text => text.includes(expectedString))).toBeTruthy();
Expand All @@ -51,9 +51,9 @@ test('Direct navigation to paginated category page contains expected release not
// verify that categories are persisted when using pagination links
test('clicking pagination works when already filtered by a category', async ({ page }) => {
await page.goto('/release-notes/1?category=drupal');
await page.getByRole('button', { name: '3', exact: true }).click();
await page.getByRole('button', { name: '4', exact: true }).click();
await page.waitForTimeout(1000);
await expect(page).toHaveURL('/release-notes/3?category=drupal');
await expect(page).toHaveURL('/release-notes/4?category=drupal');

const expectedString = 'Drush 5 and 7 are no longer available';
const h2s1 = await page.locator('h2').allTextContents();
Expand Down
Loading