Skip to content

Commit 81c1fce

Browse files
committed
update playwright test
1 parent 457e019 commit 81c1fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/playwright/tests/blog-simple-blog.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ test('Categories link are clickable', async ({ page }) => {
2424
await page.goto('./blog/simple-blog/_site/posts/welcome/');
2525
await page.locator('div').filter({ hasText: /^news$/ }).click();
2626
await expect(page).toHaveURL(/_site\/index\.html#category=news$/);
27-
await expect(page.locator('div.category[data-category="news"]')).toHaveClass(/active/);
27+
await expect(page.locator(`div.category[data-category="${btoa('news')}"]`)).toHaveClass(/active/);
2828
await page.goto('./blog/simple-blog/_site/posts/welcome/#img-lst');
2929
await page.locator('div').filter({ hasText: /^news$/ }).click();
3030
await expect(page).toHaveURL(/_site\/index\.html#category=news$/);
31-
await expect(page.locator('div.category[data-category="news"]')).toHaveClass(/active/);
31+
await expect(page.locator(`div.category[data-category="${btoa('news')}"]`)).toHaveClass(/active/);
3232
});

0 commit comments

Comments
 (0)