Commit Graph

49 Commits

Author SHA1 Message Date
Tim Donohue
042c0f06f1 Specify user agent to avoid being detected as a "bot" by backend
(cherry picked from commit 72cda41731)
2023-11-08 18:25:13 +00:00
Tim Donohue
63c752b3f4 Fix heading order accessibility issue in search filters/facets
(cherry picked from commit 276d80895e)
2023-08-30 14:40:51 +00:00
Tim Donohue
6df76515ba Minor fixes to cypress tests
(cherry picked from commit 70a7bbe3cb)
2023-08-30 14:40:51 +00:00
Tim Donohue
3cdcdaf475 Fix accessibility of date sliders by adding aria-labels
(cherry picked from commit 2a881791ba)
2023-08-30 14:40:51 +00:00
Tim Donohue
13ead8174a Fix heading order issue with item page & update accessibility tests to prove it now passes
(cherry picked from commit ba244bf6b1)
2023-08-30 14:40:51 +00:00
Tim Donohue
a7a807c0bb Enable excessibility checking of login menu, and remove unnecessary exclusion from header
(cherry picked from commit 339ed63734)
2023-08-30 14:40:51 +00:00
Tim Donohue
baecf2ac11 Reenable accessibility check fixed in #2251
(cherry picked from commit 158ebb0e32)
2023-08-30 14:40:51 +00:00
Tim Donohue
c3854355fd Fix e2e test to check for new title prefix 2023-06-12 16:56:08 -05:00
Tim Donohue
fb45f5f807 Remove flakey check for success alert box. Unnecessary for this test, and sometimes randomly fails (if alert box closes before it can be clicked closed) 2023-04-04 14:07:22 -05: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
36b8b8b61b Merge branch 'main-gh4s' into CST-6782-refactor
# Conflicts:
#	src/app/shared/cookies/browser-klaro.service.spec.ts
#	src/app/shared/cookies/browser-klaro.service.ts
2022-09-19 12:21:57 +02: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
Yury Bondarenko
c517ed0dfa 93803: Fix broken SearchDataImpl
I'd originally removed this `...linksToFollow` but it's actually required here because it's used when constructing the RemoteData

Added cypress/downloads to .gitignore because I'd accidentally committed a downloads.html file after running e2e tests locally
2022-09-14 10:48:15 +02:00
Yura Bondarenko
d69a02e6cc 90978: Fix e2e tests failing due to interactions before page fully loaded
Now that we use initialNavigation: 'enabledBlocking', pages can appear to be loaded before some functionality is fully active.
In some cases this trips up Cypress, and it tries to interact with the app too soon.

We address this by introducing a new dsBrowserOnly pipe in order to defer the data-test attributes Cypress relies on to CSR.
2022-05-04 15:25:46 +02:00
Yura Bondarenko
22d5643d8b 90978: Set klaro cookie before each test 2022-05-03 09:32:31 +02:00
Giuseppe Digilio
fa1b7d11ad [CST-5418] Check success notification is not present on depositing when there are errors 2022-04-21 11:31:07 +02:00
Tim Donohue
15acb47afa Rename data-e2e to data-test 2022-03-17 11:51:18 -05: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
8c865b758e Fix bugs / stability issues with search e2e tests 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
d1399f106e Basic MyDSpace tests. Fix basic accessibility issues found 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
Giuseppe Digilio
b7c46ffe29 [CST-4633] Fix e2e test 2022-01-14 12:37:29 +01:00
William Welling
71f5b46639 use standard environments 2021-12-06 12:25:37 -06:00
Tim Donohue
305571bc25 Add accessibility tests for search/browse 2021-10-15 15:43:01 -05: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
lotte
c28221623c Added search scope lookup to replace dropdown 2021-10-08 10:22:43 +02:00
Tim Donohue
432fb4e3cc Temporarily disable a11y check until random failure for color contrast can be fixed 2021-09-08 11:14:24 -05:00
Tim Donohue
098779a82d Fix to Cypress tsconfig.json, don't override sourceMap settings 2021-08-27 13:09:33 -05:00
Tim Donohue
3c3f2251bb Minor test cleanup. Ensure artifacts are available based on e2e search results 2021-08-27 10:07:07 -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