Skip to content

Commit

Permalink
try without adding to favs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jun 7, 2024
1 parent fb7c887 commit dfc2558
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ describe('search', () => {
cy.intercept('PUT', '**/geonetwork/srv/api/userselections/**').as(
'addFavoriteRequest'
)
if (!cy.doesElementExist('mel-datahub-results-card-favorite')) {
cy.clearFavorites()
cy.get('mel-datahub-results-card-search')
.eq(1)
.find('mel-datahub-heart-toggle')
.first()
.click()
cy.wait('@addFavoriteRequest').its('response.statusCode').should('eq', 201)
}
// if (!cy.doesElementExist('mel-datahub-results-card-favorite')) {
// cy.clearFavorites()
// cy.get('mel-datahub-results-card-search')
// .eq(1)
// .find('mel-datahub-heart-toggle')
// .first()
// .click()
// cy.wait('@addFavoriteRequest').its('response.statusCode').should('eq', 201)
// }
})

describe('favorite interactions', () => {
Expand Down

0 comments on commit dfc2558

Please sign in to comment.