Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Feb 25, 2025
1 parent 90d3006 commit 5e113d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ jobs:
strategy:
fail-fast: false
matrix:
gn_version: [4.2.2, 4.2.8, 4.4.0]
app: [datahub, metadata-editor]
gn_version: [4.4.0]
app: [datahub]
exclude:
- gn_version: 4.2.2 # metadata-editor requires v4.2.5+
app: metadata-editor
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
if: contains(env.AFFECTED_APPS, matrix.app)
env:
APP: ${{ matrix.app }}
run: npx nx e2e "$APP-e2e"
run: npx nx e2e "$APP-e2e" --spec=**/datasetDetailPage.cy.ts

- uses: actions/upload-artifact@v4
if: always() && contains(env.AFFECTED_APPS, matrix.app)
Expand All @@ -200,6 +200,10 @@ jobs:
apps/datahub-e2e/cypress/screenshots/**/*
apps/metadata-editor-e2e/cypress/screenshots/**/*
- name: Afficher le contenu du répertoire de téléchargement
if: always() && contains(env.AFFECTED_APPS, matrix.app)
run: ls -l /home/runner/work/geonetwork-ui/geonetwork-ui/apps/datahub-e2e/cypress/downloads/

- uses: thollander/actions-comment-pull-request@v2
if: always() && contains(env.AFFECTED_APPS, matrix.app) && github.event_name == 'pull_request' && steps.upload-screenshots.outputs.artifact-url
with:
Expand Down
2 changes: 1 addition & 1 deletion apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ describe('dataset pages', () => {
.find('gn-ui-download-item')
.first()
.click()
cy.readFile(path.join('cypress/downloads', 'wfs.csv')).as(
cy.readFile(path.join('cypress/downloads', 'rectangles_200m_menage_erbm.csv')).as(
'downloadedFile'
)
cy.get('@downloadedFile').should('exist')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e113d0

Please sign in to comment.