Skip to content

Commit

Permalink
upgrading module CLI test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Feb 12, 2024
1 parent 631233d commit 811d056
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upgrading_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
matrix:
include:
- prestashop: 'PS1785'
make: 'make e2eh1785'
make: 'make VERSION=1785 e2eh1785'
port: '8002'
yml: 'docker-compose.1785.yml'
ModuleUpgradeTest: 'make upgrading-module-test-1785'
ModuleUpgradeTest: 'make VERSION=1785 upgrading-module-test-1785'
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ run-e2e-tests-locally:
npx cypress run

# checking the module upgrading - installs older module then installs from master branch
upgrading-module-test-1785:
upgrading-module-test-$(VERSION):
git fetch
git checkout v5.2.0 .
composer install
# installing 5.2.0 module
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
docker exec -i prestashop-mollie-$(VERSION) sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
# installing develop branch module
git checkout -- .
git checkout develop --force
docker exec -i prestashop-mollie-1785 sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"
docker exec -i prestashop-mollie-$(VERSION) sh -c "cd /var/www/html && php bin/console prestashop:module install mollie"

npm-package-install:
cd views/assets && npm i && npm run build
1 change: 1 addition & 0 deletions cypress/e2e/ps8/06_mollie.ps8.Subscriptions.WIP.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ it.skip('C176305: Check if Subscription options added in Product BO', () => {
cy.get('#save-combinations-edition').click()
cy.get('#product_footer_save').click()
cy.contains('Successful update').should('be.visible')
cy.wait(2000)
cy.screenshot()
})
// wip
Expand Down

0 comments on commit 811d056

Please sign in to comment.