Commit Graph

29 Commits

Author SHA1 Message Date
Tim Donohue
e47593b303 Fix circular dependency issue by using Cypres env variables directly instead of global constants 2024-01-17 11:16:54 -06:00
Tim Donohue
a581219df5 Refactor e2e test infrastruction to allow easier way to lookup REST API info and generate CSRF tokens 2024-01-17 11:16:54 -06:00
Tim Donohue
72cda41731 Specify user agent to avoid being detected as a "bot" by backend 2023-11-08 10:08:49 -06:00
Tim Donohue
61ace6f831 Bug fix: generateViewEvent() requires Solr to commit stats immediately. 2023-03-07 15:02:31 -06:00
Tim Donohue
371bd072b3 Add generateViewEvent() util to generate stats in e2e tests. Refactored xsrf.interceptor.ts to move constants to a separate file so they can be reused in e2e tests easily. 2023-03-06 16:13:43 -06:00
Tim Donohue
48e95e262d Fix lint warnings by switching + to concat() 2023-03-03 12:53:27 -06:00
Tim Donohue
d38ba9cf0e Make statistics tests more stable by waiting on page to fully load 2023-03-03 12:53:27 -06:00
Tim Donohue
aa7c644e6a Minor configuration cleanup for Cypress 2023-03-03 10:49:06 -06:00
Tim Donohue
1ae3c183d4 Minor test cleanup after upgrade 2023-03-03 10:49:06 -06:00
Tim Donohue
f5d18edd06 Fix circulary dependency in our Cypress support code. 2023-03-01 16:39:35 -06:00
Tim Donohue
376788ea2e Automated upgrade to Cypress 12. 2023-03-01 16:39:31 -06:00
Tim Donohue
14bafd61fe Stabilize random authentication errors in e2e tests by using login form at all times. 2022-10-27 14:16:48 -05:00
Davide Negretti
70f2625d15 [UXP-10] e2e test fix 2022-09-15 13:57:06 +02:00
Davide Negretti
183653112e [UXP-10] e2e test fixed 2022-09-15 10:40:59 +02:00
Yura Bondarenko
22d5643d8b 90978: Set klaro cookie before each test 2022-05-03 09:32:31 +02:00
Tim Donohue
bc705df144 Check two locations for config.json, as it's in a different location in CI 2022-03-04 17:10:02 -06:00
Tim Donohue
852da27c2c Update Cypress to read REST API URL dynamically from config.json 2022-03-04 15:53:14 -06:00
Tim Donohue
ccf6c8f36e Update submission tests to use Demo Submitter. Switch Docker scripts to use updated dspace7-entities-data.sql which now includes demo in-progress submissions 2022-03-04 14:42:47 -06:00
Tim Donohue
53042179f0 Add Submission e2e tests, enhance MyDSpace tests. Minor cleanup to support tests 2022-03-04 14:42:47 -06:00
Tim Donohue
106a73f0d3 Improve stability/consistency of e2e tests by visiting blank page between each test 2022-03-02 14:42:33 -06:00
Tim Donohue
ba40cfe75a Enhance Search results tests (stabilize). Add more MyDSpace tests, including starting a submission 2022-03-02 14:42:33 -06:00
Tim Donohue
6b8eaa4b75 Refactor to ensure cy.login() custom command logs in programmatically (which is faster). Move UI login tests to login-modal.spec.ts 2022-03-02 14:42:33 -06:00
Tim Donohue
794aa33c8f Refactor to use "data-e2e" attributes in code to make selecting fields/buttons easier in e2e tests 2022-03-02 14:42:33 -06:00
Tim Donohue
cb91ccbc33 Refactor to use custom commands for login/logout & make admin user configurable 2022-03-02 14:42:33 -06:00
Tim Donohue
1f1c55d9dc Add login e2e tests. Tweak cypress retries so they don't apply to running e2e locally via GUI 2022-03-02 14:42:33 -06:00
Tim Donohue
34c33d7cf9 Make it easier to override default test UUIDS in cypress.json 2022-03-02 14:42:33 -06:00
Tim Donohue
4faa850fba Add logging for violations & testA11y() in utils.ts. Use that method everywhere else 2021-10-15 15:41:33 -05:00
Tim Donohue
3c35c6c8ae Add basic accessibility scan for most public pages. Disable any a11y tests with known issues 2021-10-15 15:41:32 -05:00
Tim Donohue
c86b68a6e0 Replace Protrator e2e tests with Cypress. Move all existing tests to Cypress & add basic Deque Axe integration. 2021-08-26 17:14:08 -05:00