File tree 2 files changed +14
-0
lines changed
.github/workflows/templates
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ services:
35
35
- " nginx-proxy:magento.test"
36
36
environment :
37
37
- NO_API_KEY_TEST
38
+ - MAGENTO_VERSION
38
39
- CYPRESS_TESTRAIL_DOMAIN
39
40
- CYPRESS_TESTRAIL_USERNAME
40
41
- CYPRESS_TESTRAIL_PASSWORD
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Magmodules.eu. All rights reserved.
3
+ * See COPYING.txt for license details.
4
+ */
5
+
1
6
const { defineConfig } = require ( "cypress" ) ;
2
7
3
8
const defaultProductId = process . env . DEFAULT_PRODUCT_ID || 2 ;
@@ -80,6 +85,14 @@ module.exports = defineConfig({
80
85
return data . code
81
86
} )
82
87
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
+
83
96
config . env . mollie_available_methods = methods ;
84
97
85
98
console . log ( 'Available Mollie payment methods: ' , methods ) ;
You can’t perform that action at this time.
0 commit comments