mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
94060: reverted e2e test changes
This commit is contained in:
@@ -107,7 +107,7 @@ describe('My DSpace page', () => {
|
|||||||
cy.get('[data-dismiss="alert"]').click({multiple: true});
|
cy.get('[data-dismiss="alert"]').click({multiple: true});
|
||||||
|
|
||||||
// This is the GET command that will actually run the 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');
|
||||||
// On MyDSpace, find the submission we just created via its ID
|
// On MyDSpace, find the submission we just created via its ID
|
||||||
cy.get('[data-test="search-box"]').type(id);
|
cy.get('[data-test="search-box"]').type(id);
|
||||||
cy.get('[data-test="search-button"]').click();
|
cy.get('[data-test="search-button"]').click();
|
||||||
|
@@ -22,7 +22,7 @@ describe('Search from Navigation Bar', () => {
|
|||||||
it('should go to search page with correct query if submitted (from home)', () => {
|
it('should go to search page with correct query if submitted (from home)', () => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
// This is the GET command that will actually run the 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
|
// Run the search
|
||||||
page.fillOutQueryInNavBar(query);
|
page.fillOutQueryInNavBar(query);
|
||||||
page.submitQueryByPressingEnter();
|
page.submitQueryByPressingEnter();
|
||||||
@@ -37,7 +37,7 @@ describe('Search from Navigation Bar', () => {
|
|||||||
it('should go to search page with correct query if submitted (from search)', () => {
|
it('should go to search page with correct query if submitted (from search)', () => {
|
||||||
cy.visit('/search');
|
cy.visit('/search');
|
||||||
// This is the GET command that will actually run the 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
|
// Run the search
|
||||||
page.fillOutQueryInNavBar(query);
|
page.fillOutQueryInNavBar(query);
|
||||||
page.submitQueryByPressingEnter();
|
page.submitQueryByPressingEnter();
|
||||||
@@ -52,7 +52,7 @@ describe('Search from Navigation Bar', () => {
|
|||||||
it('should allow user to also submit query by clicking icon', () => {
|
it('should allow user to also submit query by clicking icon', () => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
// This is the GET command that will actually run the 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
|
// Run the search
|
||||||
page.fillOutQueryInNavBar(query);
|
page.fillOutQueryInNavBar(query);
|
||||||
page.submitQueryByPressingIcon();
|
page.submitQueryByPressingIcon();
|
||||||
|
@@ -77,7 +77,7 @@ describe('New Submission page', () => {
|
|||||||
cy.get('[data-dismiss="alert"]').click({multiple: true});
|
cy.get('[data-dismiss="alert"]').click({multiple: true});
|
||||||
|
|
||||||
// This is the GET command that will actually run the 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');
|
||||||
// On MyDSpace, find the submission we just saved via its ID
|
// On MyDSpace, find the submission we just saved via its ID
|
||||||
cy.get('[data-test="search-box"]').type(id);
|
cy.get('[data-test="search-box"]').type(id);
|
||||||
cy.get('[data-test="search-button"]').click();
|
cy.get('[data-test="search-button"]').click();
|
||||||
|
Reference in New Issue
Block a user