Skip to content

Commit

Permalink
AC-6385: Fixing Functional Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glo17680 committed Aug 24, 2022
1 parent 4a7ae76 commit 29f0658
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,21 +223,16 @@ public function execute()
$configData = $this->filterNodes($configData);

$groups = $this->getRequest()->getParam('groups');
$europeanUnionCountriesSelectedValues = true;

if (isset($groups['country']['fields'])) {
if (isset($groups['country']['fields']['eu_countries'])) {
$countries = $groups['country']['fields']['eu_countries'];
if (empty($countries['value']) &&
!isset($countries['inherit'])) {
$europeanUnionCountriesSelectedValues = false;
throw new LocalizedException(
__('Something went wrong while saving this configuration.')
);
}
} else {
$europeanUnionCountriesSelectedValues = false;
}
if (!$europeanUnionCountriesSelectedValues) {
throw new LocalizedException(
__('Something went wrong while saving this configuration.')
);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
</actionGroup>
<reloadPage stepKey="realoadPageAfterConfigChanged"/>
<see selector="{{StorefrontCustomerAddressSection.country}}" userInput="United States" stepKey="seeUnitedStatesCountry"/>
<dontSee selector="{{StorefrontCustomerAddressSection.country}}" userInput="Brazil" stepKey="seeBrazilCountry1"/>
<see selector="{{StorefrontCustomerAddressSection.country}}" userInput="Brazil" stepKey="seeBrazilCountry"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<fillField selector="{{CheckoutPaymentSection.guestFirstName}}" userInput="{{address.firstname}}" stepKey="enterFirstName"/>
<fillField selector="{{CheckoutPaymentSection.guestLastName}}" userInput="{{address.lastname}}" stepKey="enterLastName"/>
<fillField selector="{{CheckoutPaymentSection.guestStreet}}" userInput="{{address.street[0]}}" stepKey="enterStreet"/>
<selectOption selector="{{CheckoutPaymentSection.guestCountry}}" userInput="{{address.country_id}}" stepKey="enterCountrys"/>
<fillField selector="{{CheckoutPaymentSection.guestCity}}" userInput="{{address.city}}" stepKey="enterCity"/>
<fillField selector="{{CheckoutPaymentSection.guestPostcode}}" userInput="{{address.postcode}}" stepKey="enterPostcode"/>
<selectOption selector="{{CheckoutPaymentSection.guestCountry}}" userInput="{{address.country_id}}" stepKey="enterCountry"/>
<fillField selector="{{CheckoutPaymentSection.guestTelephone}}" userInput="{{address.telephone}}" stepKey="enterTelephone"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
</actionGroup>
Expand Down

0 comments on commit 29f0658

Please sign in to comment.