Skip to content

Commit 346afdd

Browse files
committed
test(org): let the screenshot walk wait for the card it opens
1 parent 897d9b2 commit 346afdd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
sql,
1818
withSession,
1919
} from '@/scripts/org-redesign-e2e/harness'
20-
import { expectPageNotFound, openOrgCard, orgChip } from '@/scripts/org-redesign-e2e/locators'
20+
import { expectPageNotFound, openOrgCard } from '@/scripts/org-redesign-e2e/locators'
2121

2222
interface StateShot {
2323
name: string
@@ -90,7 +90,9 @@ const STATE_SHOTS: readonly StateShot[] = [
9090
{
9191
name: 'flyout-organization',
9292
path: 'home',
93-
open: (page) => openOrgCard(page),
93+
open: async (page) => {
94+
await openOrgCard(page)
95+
},
9496
openOnPhone: async (page) => {
9597
await page
9698
.getByRole('button', { name: /open (sidebar|menu|navigation)/i })

0 commit comments

Comments
 (0)