Skip to content

Commit e31fdc8

Browse files
toklumppclaude
andcommitted
fix(gen-ai): Restore original timeout pattern for MCP tab visibility check
Restore the original chained assertion pattern instead of the simplified version. The chained approach ensures the element exists in the DOM before checking visibility, which is more reliable when waiting for components that may remount after modal interactions. The timeout applies to the existence check, and visibility is verified immediately after with Cypress built-in retry logic. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 27bfeae commit e31fdc8

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('be.visible', { timeout: 30000 });
46+
this.findMCPServersTable().should('exist', { timeout: 30000 }).and('be.visible');
4747
}
4848

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

0 commit comments

Comments
 (0)