From 7d9fe36140e54f057c6461e4cc6b7cf4b1fcf75d Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Sat, 25 Jan 2025 15:17:34 -0800 Subject: [PATCH] test: Series navigation test --- tests/series-tags.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/series-tags.spec.ts diff --git a/tests/series-tags.spec.ts b/tests/series-tags.spec.ts new file mode 100644 index 0000000..b2dc6eb --- /dev/null +++ b/tests/series-tags.spec.ts @@ -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/"); +});