Skip to content

Commit 98fc68d

Browse files
committed
Remove timeout parameter from .should
1 parent e31fdc8 commit 98fc68d

1 file changed

Lines changed: 4 additions & 4 deletions

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ class MCPTab {
3232
}
3333

3434
// The table inside the MCP tab (testId unchanged in component)
35-
findMCPServersTable(): Cypress.Chainable<JQuery<HTMLElement>> {
36-
return cy.findByTestId('mcp-servers-panel-table');
35+
findMCPServersTable(options?: { timeout?: number }): Cypress.Chainable<JQuery<HTMLElement>> {
36+
return cy.findByTestId('mcp-servers-panel-table', options);
3737
}
3838

3939
openMCPTab(): void {
4040
// Click the MCP tab to show the servers table
4141
this.clickMCPTab();
42-
this.findMCPServersTable().should('exist', { timeout: 30000 }).and('be.visible');
42+
this.findMCPServersTable({ timeout: 30000 }).should('exist').and('be.visible');
4343
}
4444

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

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

0 commit comments

Comments
 (0)