Skip to content

Commit d064c26

Browse files
committed
94060: reverted e2e test changes
1 parent 738aa9f commit d064c26

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cypress/integration/my-dspace.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('My DSpace page', () => {
107107
cy.get('[data-dismiss="alert"]').click({multiple: true});
108108

109109
// This is the GET command that will actually run the search
110-
cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results');
110+
cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results');
111111
// On MyDSpace, find the submission we just created via its ID
112112
cy.get('[data-test="search-box"]').type(id);
113113
cy.get('[data-test="search-button"]').click();

cypress/integration/search-navbar.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Search from Navigation Bar', () => {
2222
it('should go to search page with correct query if submitted (from home)', () => {
2323
cy.visit('/');
2424
// This is the GET command that will actually run the search
25-
cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results');
25+
cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results');
2626
// Run the search
2727
page.fillOutQueryInNavBar(query);
2828
page.submitQueryByPressingEnter();
@@ -37,7 +37,7 @@ describe('Search from Navigation Bar', () => {
3737
it('should go to search page with correct query if submitted (from search)', () => {
3838
cy.visit('/search');
3939
// This is the GET command that will actually run the search
40-
cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results');
40+
cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results');
4141
// Run the search
4242
page.fillOutQueryInNavBar(query);
4343
page.submitQueryByPressingEnter();
@@ -52,7 +52,7 @@ describe('Search from Navigation Bar', () => {
5252
it('should allow user to also submit query by clicking icon', () => {
5353
cy.visit('/');
5454
// This is the GET command that will actually run the search
55-
cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results');
55+
cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results');
5656
// Run the search
5757
page.fillOutQueryInNavBar(query);
5858
page.submitQueryByPressingIcon();

cypress/integration/submission.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('New Submission page', () => {
7777
cy.get('[data-dismiss="alert"]').click({multiple: true});
7878

7979
// This is the GET command that will actually run the search
80-
cy.intercept('GET', '/server/api/discover/search/objects**').as('search-results');
80+
cy.intercept('GET', '/server/api/discover/search/objects*').as('search-results');
8181
// On MyDSpace, find the submission we just saved via its ID
8282
cy.get('[data-test="search-box"]').type(id);
8383
cy.get('[data-test="search-button"]').click();

0 commit comments

Comments
 (0)