Skip to content

Commit 0a161bc

Browse files
toklumppclaude
andcommitted
fix(gen-ai): Fix timeout handling in MCP tab visibility check
Simplify verifyMCPTabVisible() to use a single should() assertion with timeout parameter instead of chaining exist and be.visible. This ensures the 30-second timeout is properly applied to the visibility check, improving reliability when waiting for the MCP servers table after modal interactions and tab remounts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 9c69395 commit 0a161bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/gen-ai/frontend/src/__tests__/cypress/cypress/pages/playgroundPage

packages/gen-ai/frontend/src/__tests__/cypress/cypress/pages/playgroundPage/mcpTab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MCPTab {
4343
}
4444

4545
verifyMCPTabVisible(): void {
46-
this.findMCPServersTable().should('exist', { timeout: 30000 }).and('be.visible');
46+
this.findMCPServersTable().should('be.visible', { timeout: 30000 });
4747
}
4848

4949
private findCheckedCheckboxes(): Cypress.Chainable<JQuery<HTMLElement>> {

0 commit comments

Comments
 (0)