Skip to content

Commit 7e3f712

Browse files
committed
test(org): settle the last selectors against the rendered pages
1 parent b1c9548 commit 7e3f712

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/sim/scripts/test-assistant-actions-e2e.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ try {
698698
await expect(page.getByText('taylor@acme.example', { exact: true })).toBeVisible()
699699
await page.goto(selectedUrl)
700700
await expect(
701-
page.getByText('This account is no longer connected.', { exact: true })
701+
page.getByRole('heading', { name: 'This account is no longer connected.', exact: true })
702702
).toBeVisible()
703703
await expect(page.getByRole('searchbox', { name: 'Search tools', exact: true })).toHaveCount(
704704
0

‎apps/sim/scripts/test-org-redesign-e2e.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ async function integrationChecks() {
21602160
address.pathname === `${root}/integrations/secrets` &&
21612161
address.searchParams.get('q') === 'secret'
21622162
)
2163-
await page.locator(`a[href$="${root}/integrations?q=secret"]`).first().click()
2163+
await page.getByRole('button', { name: 'Integrations', exact: true }).click()
21642164
await expect(page).toHaveURL(
21652165
(address) =>
21662166
address.pathname === `${root}/integrations` && address.searchParams.get('q') === 'secret'
@@ -3186,6 +3186,8 @@ async function walkOne(persona: Persona, viewport: Viewport, theme: Theme) {
31863186
async function walkRoutes(personas: Persona[]) {
31873187
section('Route walk')
31883188
currentCheck = 'Route walk'
3189+
// The token route limits per user, and one persona opens a hundred pages here within minutes.
3190+
allowedFailures = [/429 POST \/api\/auth\/socket-token/]
31893191
const plan = personas.flatMap((persona) =>
31903192
[DESKTOP, PHONE].flatMap((viewport) =>
31913193
(['light', 'dark'] as const).map((theme) => ({ persona, viewport, theme }))

0 commit comments

Comments
 (0)