diff --git a/cypress/integration/my-dspace.spec.ts b/cypress/integration/my-dspace.spec.ts index 84932d5b31..fa923dbcbc 100644 --- a/cypress/integration/my-dspace.spec.ts +++ b/cypress/integration/my-dspace.spec.ts @@ -107,7 +107,7 @@ describe('My DSpace page', () => { cy.get('[data-dismiss="alert"]').click({multiple: true}); // This is the GET command that will actually run the search - cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results'); + cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results'); // On MyDSpace, find the submission we just created via its ID cy.get('[data-test="search-box"]').type(id); cy.get('[data-test="search-button"]').click(); diff --git a/cypress/integration/search-navbar.spec.ts b/cypress/integration/search-navbar.spec.ts index cf11fdd9f9..babd9b9dfd 100644 --- a/cypress/integration/search-navbar.spec.ts +++ b/cypress/integration/search-navbar.spec.ts @@ -22,7 +22,7 @@ describe('Search from Navigation Bar', () => { it('should go to search page with correct query if submitted (from home)', () => { cy.visit('/'); // This is the GET command that will actually run the search - cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results'); + cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results'); // Run the search page.fillOutQueryInNavBar(query); page.submitQueryByPressingEnter(); @@ -37,7 +37,7 @@ describe('Search from Navigation Bar', () => { it('should go to search page with correct query if submitted (from search)', () => { cy.visit('/search'); // This is the GET command that will actually run the search - cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results'); + cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results'); // Run the search page.fillOutQueryInNavBar(query); page.submitQueryByPressingEnter(); @@ -52,7 +52,7 @@ describe('Search from Navigation Bar', () => { it('should allow user to also submit query by clicking icon', () => { cy.visit('/'); // This is the GET command that will actually run the search - cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results'); + cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results'); // Run the search page.fillOutQueryInNavBar(query); page.submitQueryByPressingIcon(); diff --git a/cypress/integration/submission.spec.ts b/cypress/integration/submission.spec.ts index c4f4f9cea8..009c50115b 100644 --- a/cypress/integration/submission.spec.ts +++ b/cypress/integration/submission.spec.ts @@ -77,7 +77,7 @@ describe('New Submission page', () => { cy.get('[data-dismiss="alert"]').click({multiple: true}); // This is the GET command that will actually run the search - cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results'); + cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results'); // On MyDSpace, find the submission we just saved via its ID cy.get('[data-test="search-box"]').type(id); cy.get('[data-test="search-button"]').click();