Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(gmail-flow): update cancel button selector to close

Steven Enamakel9df6f3411341
diff --git a/app/test/playwright/specs/gmail-flow.spec.ts b/app/test/playwright/specs/gmail-flow.spec.ts
index 347729e462..6d45d152f4 100644
--- a/app/test/playwright/specs/gmail-flow.spec.ts
+++ b/app/test/playwright/specs/gmail-flow.spec.ts
@@ -97,7 +97,7 @@ test.describe('Gmail Integration Flows', () => {
await page.getByTestId('skill-install-composio-gmail').click();
const dialog = page.getByRole('dialog', { name: /Connect Gmail/i });
await expect(dialog).toBeVisible();
- await dialog.getByRole('button', { name: /cancel/i }).click();
+ await dialog.getByRole('button', { name: 'Close', exact: true }).click();
await expect(dialog).toBeHidden();
await expect(page.getByTestId('skill-install-composio-gmail')).toHaveAccessibleName(/Connect/i);
});