Skip to content

Commit

Permalink
Merge pull request #1088 from nesrineabdmouleh/AddTestOfUpgradeFromIn…
Browse files Browse the repository at this point in the history
…terface

UI tests - Add first scénario to upgrade from module interface
  • Loading branch information
Progi1984 authored Jan 30, 2025
2 parents 7c1b3f7 + 6951d91 commit 905ffa0
Show file tree
Hide file tree
Showing 16 changed files with 1,758 additions and 20 deletions.
Empty file modified .github/workflows/checksUI.yml
100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions .github/workflows/ui-test.yml → .github/workflows/sanity-tests.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: UI Tests
name: Upgrade CLI
on:
## Check each PR
push:
Expand All @@ -20,10 +20,10 @@ env:
jobs:
ui_test_matrix:
if: github.event.pull_request.draft == false
name: UI Tests (Matrix)
name: Upgrade CLI (Matrix)
runs-on: ubuntu-latest
env:
JSON_FILE: ${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.head.ref == 'dev' && github.event.pull_request.base.ref == 'master')) && 'nightly.json' || 'sanity.json' }}
JSON_FILE: ${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.head.ref == 'dev' && github.event.pull_request.base.ref == 'master')) && 'nightlySanity.json' || 'sanity.json' }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -34,7 +34,7 @@ jobs:
run: echo "matrix=$(jq -c '. | del(.include[] | select(has("comment")))' .github/workflows/ui-test/${{ env.JSON_FILE }})" >> $GITHUB_OUTPUT

ui_test:
name: UI Tests
name: Sanity Tests
runs-on: ubuntu-latest
needs: ui_test_matrix
strategy:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
DB_PASSWD: prestashop
DB_NAME: prestashop
DB_PREFIX: ps_
run: npx playwright test
run: npm run test:sanity

- name: Rollback
run: |
Expand All @@ -128,7 +128,7 @@ jobs:
DB_PASSWD: prestashop
DB_NAME: prestashop
DB_PREFIX: ps_
run: npx playwright test
run: npm run test:sanity

- name: Export Docker errors
working-directory: tests/UI/
Expand Down
File renamed without changes.
Loading

0 comments on commit 905ffa0

Please sign in to comment.