Skip to content

Commit e2dff57

Browse files
committed
test(org): anchor /platform on its marketing page and allow the bogus invitation's read
/platform is the marketing page here, not a 404. /invite answers 200 and its client read is what 404s, so the allows name the requests that really fail.
1 parent 77f7003 commit e2dff57

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export async function blastRadiusChecks() {
240240
const signedOut = [
241241
['/login', page.locator('#email')],
242242
['/', page.getByRole('heading', { level: 1 }).first()],
243-
['/platform', page.getByRole('heading', { name: 'Page not found' })],
243+
['/platform', page.getByRole('heading', { level: 1, name: 'One AI workspace' })],
244244
] as const
245245
for (const [path, anchor] of signedOut) {
246246
await page.goto(url(path))
@@ -251,11 +251,10 @@ export async function blastRadiusChecks() {
251251
})
252252
},
253253
{
254-
// The three addresses this check opens that have nothing to show.
254+
// The link and the invitation this check opens that do not exist.
255255
allow: [
256256
refused(404, 'GET', '/sim/no-such-link'),
257-
refused(404, 'GET', '/invite/not-a-token'),
258-
refused(404, 'GET', '/platform'),
257+
refused(404, 'GET', '/api/invitations/not-a-token'),
259258
],
260259
}
261260
)

0 commit comments

Comments
 (0)