-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Cypress e2e testing in CI (#1677)
[Cypress](https://www.cypress.io) can now be used for e2e testing. We should begin converting our Selenium and Protractor tests to Cypress since Selenium is becoming outdated, and Protractor has been EOL for some time. This PR only includes a single example "spec" file. Future PRs will add real test cases and eliminate the example spec file. I also performed a light refactor of our CTest test structure. It would be a good idea to take a closer look at our CTest setup in the future.
- Loading branch information
1 parent
c062f14
commit 5871f3d
Showing
15 changed files
with
1,455 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { defineConfig } = require('cypress'); | ||
|
||
module.exports = defineConfig({ | ||
fixturesFolder: 'tests/cypress/fixtures', | ||
screenshotsFolder: 'tests/cypress/screenshots', | ||
videosFolder: 'tests/cypress/videos', | ||
downloadsFolder: 'tests/cypress/downloads', | ||
pageLoadTimeout: 300000, | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
baseUrl: 'http://localhost:8080', | ||
specPattern: 'tests/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}', | ||
supportFile: 'tests/cypress/support/e2e.js', | ||
experimentalStudio: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.