Skip to content

Commit

Permalink
Merge pull request #998 from mollie/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
GytisZum authored Nov 19, 2024
2 parents d45dd80 + 79308d9 commit 9bcb205
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/E2E_On_PR.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Cypress E2E Automation [develop branch]
on:
pull_request:
types: [opened, reopened]
branches: [develop, develop**, develop-**]

concurrency:
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:
run: |
${{ matrix.make }}
- name: Waiting for Ngrok tunnel
- name: Waiting for Ngrok
run: |
URL="${{ matrix.url }}"
TIMEOUT=120
Expand Down Expand Up @@ -102,7 +101,7 @@ jobs:
- name: Archive videos and screenshots
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Cypress_Mollie_videos_screenshots_${{ matrix.prestashop }}
retention-days: 2
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module = mollie

# target: fix-lint - Launch php cs fixer
fix-lint:
docker-compose run --rm php sh -c "vendor/bin/php-cs-fixer fix --using-cache=no"
docker compose run --rm php sh -c "vendor/bin/php-cs-fixer fix --using-cache=no"

# Launch the PS build and E2E Cypress app automatically. Eexample: make VERSION=1785 e2eh1785_local, make VERSION=8 e2eh8_local etc.
# Warning: .env with secrets must be imported if you wanna test locally! This checks the .env existence, ignoring if there is no such on your machine.
Expand All @@ -17,9 +17,9 @@ endif
e2eh$(VERSION)_local:
composer install
# detaching containers
docker-compose -f docker-compose.$(VERSION).yml up -d --force-recreate
docker compose -f docker-compose.$(VERSION).yml up -d --force-recreate
# sees what containers are running
docker-compose -f docker-compose.$(VERSION).yml ps
docker compose -f docker-compose.$(VERSION).yml ps
make waiting-for-containers-local
make seeding-customized-sql
make installing-uninstalling-enabling-module
Expand All @@ -29,9 +29,9 @@ e2eh$(VERSION)_local:
# For CI build with PS autoinstall
e2eh$(VERSION):
# detaching containers
docker-compose -f docker-compose.$(VERSION).yml up -d --force-recreate
docker compose -f docker-compose.$(VERSION).yml up -d --force-recreate
# sees what containers are running
docker-compose -f docker-compose.$(VERSION).yml ps
docker compose -f docker-compose.$(VERSION).yml ps
make waiting-for-containers-CI
make seeding-customized-sql
make installing-uninstalling-enabling-module
Expand Down
8 changes: 7 additions & 1 deletion controllers/front/return.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ public function initContent()
}
if (false === $data['mollie_info']) {
$data['mollie_info'] = [];
$data['msg_details'] = $this->module->l('There is no order with this ID.', self::FILE_NAME);
//NOTE: information instead of error as this might occur due to cancellation of the payment
$logger->info(sprintf('There is no order with this order number - %s', (string) $orderNumber));

$data['msg_details'] = $this->module->l('Your payment was not successful. Try again.', self::FILE_NAME);
$this->setWarning($data['msg_details']);

Tools::redirect(Context::getContext()->link->getPageLink('cart', true));
} elseif (PaymentMethod::BANKTRANSFER === $data['mollie_info']['method']
&& PaymentStatus::STATUS_OPEN === $data['mollie_info']['bank_status']
) {
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/ps8/05_mollie.ps8.PaymentTestsPaymentsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ it('C339391: 56 Przelewy24 Checkouting [Payments API]', () => {
cy.contains('Przelewy24').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
cy.contains('Place order').click()
cy.get('.input-float > input').type('[email protected]')
cy.get('[class="button form__button"]').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
Expand Down

0 comments on commit 9bcb205

Please sign in to comment.