Skip to content

Commit

Permalink
test: assert that posts that should not be visible are not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
dually8 committed Dec 23, 2024
1 parent 41612d7 commit ab6ca6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ test('test', async ({ page }) => {
await expect(page.getByPlaceholder('Search')).toBeVisible();
await page.getByPlaceholder('Search').click();
await page.getByPlaceholder('Search').fill('devlog');
await expect(page.locator('a').filter({ hasText: 'Dev Log Series Part 3 2023-11' })).toBeVisible();
await expect(page.locator('h2').filter({ hasText: 'Dev Log Series Part 3' })).toBeVisible();
await expect(page.locator('h2').filter({ hasText: 'FIRST' })).not.toBeVisible();
});

0 comments on commit ab6ca6f

Please sign in to comment.