Skip to content

Commit

Permalink
update timeout for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Jan 6, 2025
1 parent 71aa5bc commit f8c5bf5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/website/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
defaultCommandTimeout: 1000_000,
pageLoadTimeout: 1000_000,
requestTimeout: 1000_000,
responseTimeout: 1000_000,
defaultCommandTimeout: 100_000,
pageLoadTimeout: 100_000,
requestTimeout: 100_000,
responseTimeout: 300_000,
specPattern: '**/*.feature',
baseUrl: 'http://localhost:3000',
video: false, // GH provides 2 CPUs, and cypress video eats one up, ref https://github.com/cypress-io/cypress/issues/20468#issuecomment-1307608025
Expand Down
1 change: 1 addition & 0 deletions packages/website/cypress/integration/StageTxns.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Feature: Stage Transactions
When User clicks on the button with "aria-label" "queue-txs"
Then View renders a "header" displaying the text "Stage Transactions to a Safe"
When User types and select the safe "11155111:0xfD050037C9039cE7b4A3213E3645BC1ba6eA0c97"
When View contains the "target-input" input
When User types "owned-greeter" in the "target-input" input
When User clicks on the button with "aria-label" "Add Transaction"
* User selects and clicks on the contract with name "Greeter" of the element # 1
Expand Down
4 changes: 4 additions & 0 deletions packages/website/cypress/step-definitions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ Then('URL includes {string}', (path: string) => {
Then('View renders a {string} displaying the text {string}', (element: string, text: string) => {
cy.get(element).contains(text);
});

Then('View contains the {string} input', (input: string) => {
cy.get(`input[name="${input}"]`).should('be.visible');
});

0 comments on commit f8c5bf5

Please sign in to comment.