Skip to content

Commit

Permalink
try that
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jun 7, 2024
1 parent dec2404 commit c2763b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ describe('search', () => {
})

// If logged in and favorites exist
describe('User logged in', () => {
before(() => {
describe.only('User logged in', () => {
beforeEach(() => {
cy.login()
cy.visit('/search')
cy.intercept('PUT', '**/geonetwork/srv/api/userselections/**').as(
Expand All @@ -99,9 +99,9 @@ describe('search', () => {
.eq(1)
.find('mel-datahub-heart-toggle')
.first()
.find('mel-datahub-button')
.first()
.click()
cy.wait('@addFavoriteRequest').its('response.statusCode').should('eq', 201)
cy.visit('/search')
})

describe('favorite interactions', () => {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('search', () => {
cy.get('mel-datahub-results-card-favorite').as('favoriteCard')
})
it('should open the dataset page in the same application on click', () => {
cy.get('@firstResult').find('h1').click()
cy.get('@favoriteCard').find('h1').click()
cy.url().should('include', 'dataset')
cy.get('mel-datahub-dataset-page').should('be.visible')
})
Expand Down

0 comments on commit c2763b8

Please sign in to comment.