Skip to content

Commit

Permalink
ci(e2e): clean volumes
Browse files Browse the repository at this point in the history
to make sure latest db dump from gn-ui is used
and adapt tests to latest gn-ui db dump
  • Loading branch information
tkohr committed Feb 16, 2024
1 parent 04e7ebd commit 927be3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
repository: geonetwork/geonetwork-ui
path: 'backend/geonetwork-ui'
- name: Build the gn-ui backend
run: sudo docker-compose -f backend/geonetwork-ui/support-services/docker-compose.yml up -d init
run: cd backend/geonetwork-ui/support-services && sudo docker-compose down -v && sudo docker-compose up -d init

- name: Install dependencies
run: npm i
Expand Down
4 changes: 2 additions & 2 deletions apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('datahub-e2e', () => {
cy.get('.mel-page-title').should('be.visible')
})
it('should display the number of result hits', () => {
cy.get('gn-ui-results-hits-number').should('contain', 12)
cy.get('gn-ui-results-hits-number').should('contain', 14)
})

// If not logged in or no favorites exists
Expand All @@ -15,7 +15,7 @@ describe('datahub-e2e', () => {
.find('h1')
.should(
'have.text',
' Cartographie des sols agricoles de la plaine du Rhône '
' Metadata for E2E testing purpose. (this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut) '
)

cy.get('mel-datahub-results-card-last-created')
Expand Down

0 comments on commit 927be3d

Please sign in to comment.