test: Series navigation test

This commit is contained in:
Leni Aniva 2025-01-25 15:17:34 -08:00
parent 56e6efc795
commit 7d9fe36140
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { expect, test } from '@playwright/test';
test('Navigate in series', async ({ page }) => {
await page.goto('/post');
await page.getByText('Placeholder 2').click();
await expect(page).toHaveURL("/post/placeholder2/");
await page.getByText('Placeholder 1').click();
await expect(page).toHaveURL("/post/placeholder1/");
});