Skip to content

Commit 3b0ed92

Browse files
committed
test(search): scope filter assertion to the result link
1 parent 911f884 commit 3b0ed92

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/sim/scripts/test-organization-search-e2e.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,12 +876,16 @@ try {
876876
try {
877877
await page.goto(`${baseUrl.origin}${root}/search?q=Launch%20readiness`)
878878
await expect(page.getByText('Launch brief', { exact: true }).first()).toBeVisible()
879+
const wikiResult = page.locator(
880+
'a[data-source-link][href="https://wiki.example.test/launch"]'
881+
)
882+
await expect(wikiResult).toBeVisible()
879883
await capture('search-populated-desktop')
880884
await page.getByRole('button', { name: 'Filter by source: All sources' }).click()
881885
await capture('search-source-filter')
882886
await page.getByRole('menuitem', { name: 'Google Drive', exact: true }).click()
883887
await expect(page).toHaveURL((url) => url.searchParams.get('source') === 'google_drive')
884-
await expect(page.getByText('Launch readiness', { exact: true })).toHaveCount(0)
888+
await expect(wikiResult).toHaveCount(0)
885889
await capture('search-filtered')
886890
await page.getByRole('button', { name: 'Filter by date: Any time' }).click()
887891
await capture('search-date-filter')

0 commit comments

Comments
 (0)