File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
Controller/Adminhtml/System/Config
Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -223,21 +223,16 @@ public function execute()
223
223
$ configData = $ this ->filterNodes ($ configData );
224
224
225
225
$ groups = $ this ->getRequest ()->getParam ('groups ' );
226
- $ europeanUnionCountriesSelectedValues = true ;
226
+
227
227
if (isset ($ groups ['country ' ]['fields ' ])) {
228
228
if (isset ($ groups ['country ' ]['fields ' ]['eu_countries ' ])) {
229
229
$ countries = $ groups ['country ' ]['fields ' ]['eu_countries ' ];
230
230
if (empty ($ countries ['value ' ]) &&
231
231
!isset ($ countries ['inherit ' ])) {
232
- $ europeanUnionCountriesSelectedValues = false ;
232
+ throw new LocalizedException (
233
+ __ ('Something went wrong while saving this configuration. ' )
234
+ );
233
235
}
234
- } else {
235
- $ europeanUnionCountriesSelectedValues = false ;
236
- }
237
- if (!$ europeanUnionCountriesSelectedValues ) {
238
- throw new LocalizedException (
239
- __ ('Something went wrong while saving this configuration. ' )
240
- );
241
236
}
242
237
}
243
238
Original file line number Diff line number Diff line change 59
59
</actionGroup >
60
60
<reloadPage stepKey =" realoadPageAfterConfigChanged" />
61
61
<see selector =" {{StorefrontCustomerAddressSection.country}}" userInput =" United States" stepKey =" seeUnitedStatesCountry" />
62
- <dontSee selector =" {{StorefrontCustomerAddressSection.country}}" userInput =" Brazil" stepKey =" seeBrazilCountry1 " />
62
+ <see selector =" {{StorefrontCustomerAddressSection.country}}" userInput =" Brazil" stepKey =" seeBrazilCountry " />
63
63
</test >
64
64
</tests >
Original file line number Diff line number Diff line change 15
15
<fillField selector =" {{CheckoutPaymentSection.guestFirstName}}" userInput =" {{address.firstname}}" stepKey =" enterFirstName" />
16
16
<fillField selector =" {{CheckoutPaymentSection.guestLastName}}" userInput =" {{address.lastname}}" stepKey =" enterLastName" />
17
17
<fillField selector =" {{CheckoutPaymentSection.guestStreet}}" userInput =" {{address.street[0]}}" stepKey =" enterStreet" />
18
- <selectOption selector =" {{CheckoutPaymentSection.guestCountry}}" userInput =" {{address.country_id}}" stepKey =" enterCountrys" />
19
18
<fillField selector =" {{CheckoutPaymentSection.guestCity}}" userInput =" {{address.city}}" stepKey =" enterCity" />
20
19
<fillField selector =" {{CheckoutPaymentSection.guestPostcode}}" userInput =" {{address.postcode}}" stepKey =" enterPostcode" />
20
+ <selectOption selector =" {{CheckoutPaymentSection.guestCountry}}" userInput =" {{address.country_id}}" stepKey =" enterCountry" />
21
21
<fillField selector =" {{CheckoutPaymentSection.guestTelephone}}" userInput =" {{address.telephone}}" stepKey =" enterTelephone" />
22
22
<waitForLoadingMaskToDisappear stepKey =" waitForLoadingMask" />
23
23
</actionGroup >
You can’t perform that action at this time.
0 commit comments