Skip to content

Commit 376788e

Browse files
committed
Automated upgrade to Cypress 12.
1 parent 1d58910 commit 376788e

28 files changed

+59
-55
lines changed

cypress.config.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
videosFolder: 'cypress/videos',
5+
screenshotsFolder: 'cypress/screenshots',
6+
fixturesFolder: 'cypress/fixtures',
7+
retries: {
8+
runMode: 2,
9+
openMode: 0,
10+
},
11+
env: {
12+
DSPACE_TEST_ADMIN_USER: 'dspacedemo+admin@gmail.com',
13+
DSPACE_TEST_ADMIN_PASSWORD: 'dspace',
14+
DSPACE_TEST_COMMUNITY: '0958c910-2037-42a9-81c7-dca80e3892b4',
15+
DSPACE_TEST_COLLECTION: '282164f5-d325-4740-8dd1-fa4d6d3e7200',
16+
DSPACE_TEST_ENTITY_PUBLICATION: 'e98b0f27-5c19-49a0-960d-eb6ad5287067',
17+
DSPACE_TEST_SEARCH_TERM: 'test',
18+
DSPACE_TEST_SUBMIT_COLLECTION_NAME: 'Sample Collection',
19+
DSPACE_TEST_SUBMIT_COLLECTION_UUID: '9d8334e9-25d3-4a67-9cea-3dffdef80144',
20+
DSPACE_TEST_SUBMIT_USER: 'dspacedemo+submit@gmail.com',
21+
DSPACE_TEST_SUBMIT_USER_PASSWORD: 'dspace',
22+
},
23+
e2e: {
24+
// We've imported your old cypress plugins here.
25+
// You may want to clean this up later by importing these.
26+
setupNodeEvents(on, config) {
27+
return require('./cypress/plugins/index.ts')(on, config)
28+
},
29+
baseUrl: 'http://localhost:4000',
30+
},
31+
})

cypress.json

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_ENTITY_PUBLICATION } from 'cypress/support';
1+
import { TEST_ENTITY_PUBLICATION } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

44
describe('Breadcrumbs', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cypress/integration/collection-page.spec.ts renamed to cypress/e2e/collection-page.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_COLLECTION } from 'cypress/support';
1+
import { TEST_COLLECTION } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

44
describe('Collection Page', () => {

cypress/integration/collection-statistics.spec.ts renamed to cypress/e2e/collection-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_COLLECTION } from 'cypress/support';
1+
import { TEST_COLLECTION } from 'cypress/support/e2e';
22
import { testA11y } from 'cypress/support/utils';
33

44
describe('Collection Statistics Page', () => {
File renamed without changes.

0 commit comments

Comments
 (0)