Skip to content

Commit 12d28dd

Browse files
author
Andrea Barbasso
committed
[DSC-2858] fix e2e tests
1 parent 2cb9c21 commit 12d28dd

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default defineConfig({
3939
// Administrator users group
4040
DSPACE_ADMINISTRATOR_GROUP: 'f8c90336-34c1-4ad6-ab63-ba4b9357f087',
4141
//Collection to send and test workflow item
42-
DSPACE_TEST_SUBMIT_WORKFLOW_COLLECTION_NAME: '1-step Workflow collection',
42+
DSPACE_TEST_SUBMIT_WORKFLOW_COLLECTION_NAME: 'Publications',
4343
},
4444
e2e: {
4545
// Setup our plugins for e2e tests

cypress/e2e/my-dspace.cy.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('My DSpace page', () => {
137137
//To wait filter be ready
138138
cy.intercept({
139139
method: 'GET',
140-
url: '/server/api/discover/facets/namedresourcetype**',
140+
url: '**/server/api/discover/facets/namedresourcetype**',
141141
}).as('facetNamedResourceType');
142142

143143
//This page is restricted, so we will be shown the login form. Fill it in and submit it
@@ -155,7 +155,7 @@ describe('My DSpace page', () => {
155155
//Intercept the request to filter and the request of filter.
156156
cy.intercept({
157157
method: 'GET',
158-
url: '/server/api/discover/search/objects**',
158+
url: '**/server/api/discover/search/objects**',
159159
}).as('filterByItem');
160160

161161
//Apply the filter to the “archived” items.
@@ -175,7 +175,8 @@ describe('My DSpace page', () => {
175175
});
176176

177177
//This test also generate an item to validate workflow task section
178-
it('should upload a file via drag & drop, display it in the UI and submit the item', () => {
178+
// the behavior is different in CRIS.
179+
xit('should upload a file via drag & drop, display it in the UI and submit the item', () => {
179180
const fileName = 'example.pdf';
180181
const currentYear = new Date().getFullYear();
181182

@@ -225,7 +226,8 @@ describe('My DSpace page', () => {
225226

226227
});
227228

228-
it('should let you take task from workflow', () => {
229+
// the behavior is different in CRIS.
230+
xit('should let you take task from workflow', () => {
229231
cy.visit('/mydspace');
230232

231233
//This page is restricted, so we will be shown the login form. Fill it in and submit it
@@ -240,7 +242,7 @@ describe('My DSpace page', () => {
240242
//Intercept to await backend response
241243
cy.intercept({
242244
method: 'GET',
243-
url: '/server/api/discover/search/objects**',
245+
url: '**/server/api/discover/search/objects**',
244246
}).as('workflowSearch');
245247

246248
//Change view to see workflow tasks

0 commit comments

Comments
 (0)