Skip to content

Commit 7a52b69

Browse files
committed
94060: hopefully fix cypress tests
1 parent 9f1749e commit 7a52b69

4 files changed

Lines changed: 7 additions & 7 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();

src/app/entity-groups/research-entities/submission/item-list-elements/person/person-search-result-list-submission-element.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
[placeholder]="'thumbnail.person.placeholder'">
99
</ds-thumbnail>
1010
</a>
11-
<div *ngIf="linkType == linkTypes.None" class="dont-break-out">
11+
<span *ngIf="linkType == linkTypes.None" class="dont-break-out">
1212
<ds-thumbnail [thumbnail]="dso?.thumbnail | async"
1313
[defaultImage]="'assets/images/person-placeholder.svg'"
1414
[alt]="'thumbnail.person.alt'"
1515
[placeholder]="'thumbnail.person.placeholder'">
1616
</ds-thumbnail>
17-
</div>
17+
</span>
1818
</div>
1919
<div [ngClass]="showThumbnails ? 'col-9' : 'col-md-12'">
2020
<div class="d-flex">

0 commit comments

Comments
 (0)