Raised default and request timeouts to 60 seconds in Cypress config to improve test reliability. Added a custom 'waitForSelectOptions' command to ensure select elements are populated before interacting, and updated station location test to use this command.
13 行
369 B
JavaScript
13 行
369 B
JavaScript
const { defineConfig } = require("cypress");
|
|
|
|
module.exports = defineConfig({
|
|
projectId: 'gm8wco',
|
|
e2e: {
|
|
baseUrl: "http://localhost/",
|
|
defaultCommandTimeout: 60000, // Increase default timeout to 60 seconds
|
|
requestTimeout: 60000, // Increase request timeout to 60 seconds
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
},
|
|
},
|
|
});
|