Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

test(marketing): wait for interactive demo before navigation (#8473)

Chaitanya Agarwal390e6a2e9e09
diff --git a/apps/marketing/scripts/verifyHomepage.ts b/apps/marketing/scripts/verifyHomepage.ts
index 460d23a872..17ff78c5e3 100644
--- a/apps/marketing/scripts/verifyHomepage.ts
+++ b/apps/marketing/scripts/verifyHomepage.ts
@@ -169,6 +169,12 @@ export async function verifyHomepage(directory: string): Promise<void> {
const workspace = page.frameLocator(
'iframe[title="Embedded Macro sample workspace"]'
);
+ // Prerendered buttons can paint before they have handlers. Also wait
+ // for iframe load, whose carousel listener selects the initial view.
+ await expect(page.locator('.homepage-embedded-loading')).toHaveCount(
+ 0
+ );
+ await workspace.locator('.dummy-route:not([data-hk])').waitFor();
const chat = workspace
.getByRole('navigation', { name: 'Workspace navigation' })
.getByRole('button', { name: 'Chat', exact: true });