Skip to content

Commit 7aadd4a

Browse files
Disable Swish tests on 2.3.7-p4
1 parent 0816cd8 commit 7aadd4a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/templates/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ services:
3535
- "nginx-proxy:magento.test"
3636
environment:
3737
- NO_API_KEY_TEST
38+
- MAGENTO_VERSION
3839
- CYPRESS_TESTRAIL_DOMAIN
3940
- CYPRESS_TESTRAIL_USERNAME
4041
- CYPRESS_TESTRAIL_PASSWORD

Test/End-2-end/cypress.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright Magmodules.eu. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
16
const { defineConfig } = require("cypress");
27

38
const defaultProductId = process.env.DEFAULT_PRODUCT_ID || 2;
@@ -80,6 +85,14 @@ module.exports = defineConfig({
8085
return data.code
8186
})
8287

88+
// Region ID is expected to be a select, but in Magento 2.3.7-p4 it is an input
89+
if (process.env.MAGENTO_VERSION === '2.3.7-p4') {
90+
methods.splice(methods.indexOf('swish'), 1);
91+
92+
console.log('Detected Magento 2.3.7-p4, removing Swish from the list of available methods');
93+
}
94+
95+
8396
config.env.mollie_available_methods = methods;
8497

8598
console.log('Available Mollie payment methods: ', methods);

0 commit comments

Comments
 (0)