Skip to content

Commit

Permalink
Tweak E2E tests for more relability (#1533)
Browse files Browse the repository at this point in the history
* Chain disabled checks for more consistency in tests. Fixes #1532.
* Increase timeout for cypress tests.
  • Loading branch information
dokterbob authored Nov 21, 2024
1 parent 2ea6aac commit dde96bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({

e2e: {
supportFile: false,
defaultCommandTimeout: 10000,
defaultCommandTimeout: 15000,
video: false,
baseUrl: 'http://127.0.0.1:8000',
setupNodeEvents(on) {
Expand Down
6 changes: 2 additions & 4 deletions cypress/support/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { sep } from 'path';
import { ExecutionMode } from './utils';

export function submitMessage(message: string) {
cy.get(`#chat-input`).should('not.be.disabled');
cy.get(`#chat-input`).type(`${message}{enter}`);
cy.get(`#chat-input`).should('not.be.disabled').type(`${message}{enter}`);
}

export function submitMessageCopilot(message: string) {
Expand All @@ -16,8 +15,7 @@ export function submitMessageCopilot(message: string) {
}

export function openHistory() {
cy.get(`#chat-input`).should('not.be.disabled');
cy.get(`#chat-input`).type(`{upArrow}`);
cy.get(`#chat-input`).should('not.be.disabled').type(`{upArrow}`);
}

export function closeHistory() {
Expand Down

0 comments on commit dde96bc

Please sign in to comment.