Skip to content

Commit

Permalink
VACMS-12734: Updates Cypress and related tools to a recent version. (#…
Browse files Browse the repository at this point in the history
…12901)

* VACMS-12734: Updates Cypress and related tools to a recent version.

* Updates!

* Migrate to `cypress.config.js`.

* Excludes problematic element.

* Maybe fix query for pager item...

* Try something else...

* Check visibility of modal, not presence, in case it hangs around a bit.

* Add some waits...

* Modal can sometimes remain in the DOM?
  • Loading branch information
ndouglas authored Mar 16, 2023
1 parent ac037b5 commit a20d788
Show file tree
Hide file tree
Showing 6 changed files with 1,759 additions and 1,278 deletions.
29 changes: 29 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable global-require */
/* eslint-disable import/extensions */
// eslint-disable-next-line import/no-extraneous-dependencies
const { defineConfig } = require("cypress");

module.exports = defineConfig({
defaultCommandTimeout: 10000,
downloadsFolder: "tests/cypress/downloads",
env: {
failSilently: false,
},
fixturesFolder: "tests/cypress/fixtures",
screenshotsFolder: "docroot/cypress/screenshots/actual",
trashAssetsBeforeRuns: true,
videoCompression: false,
videoUploadOnPasses: false,
videosFolder: "docroot/cypress/videos",
viewportHeight: 900,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./tests/cypress/plugins/index.js")(on, config);
},
baseUrl: "http://va-gov-cms.ddev.site",
specPattern: "tests/cypress/integration/**/*.{feature,features}",
supportFile: "tests/cypress/support/index.js",
},
});
21 changes: 0 additions & 21 deletions cypress.json

This file was deleted.

Loading

0 comments on commit a20d788

Please sign in to comment.