Skip to content

Commit 6161104

Browse files
committed
test(platform): expect a Recents mark only on a provider chip
bf60f44 restored the design owner's Recents row, which draws a provider's mark and gives a plain site no favicon or globe.
1 parent 1039d61 commit 6161104

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • apps/sim/scripts/org-redesign-e2e/checks

‎apps/sim/scripts/org-redesign-e2e/checks/home.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export async function homeChecks() {
285285
})
286286
)
287287
})
288-
await check('Recents collapse repeats, and every chip has a mark', async () => {
288+
await check('Recents collapse repeats, and only a provider chip has a mark', async () => {
289289
const [before] =
290290
await sql`select sources from organization_search_history where user_id = ${ADMIN.userId} and organization_id = ${ORGANIZATION_ID}`
291291
const viewedAt = new Date().toISOString()
@@ -317,9 +317,9 @@ export async function homeChecks() {
317317
sources[0].url,
318318
'A collapsed chip must link its latest visit'
319319
)
320-
for (const link of await links.all()) {
321-
await expect(link.locator('svg, img').first()).toBeVisible()
322-
}
320+
// The design owner's row draws a provider's mark and no favicon for a plain site.
321+
await expect(links.first().locator('svg, img').first()).toBeVisible()
322+
await expect(links.nth(1).locator('svg, img')).toHaveCount(0)
323323
const channelChip = links.first()
324324
await channelChip.hover()
325325
await recents.getByRole('button', { name: 'Remove #candidates from recents' }).click()

0 commit comments

Comments
 (0)