Skip to content

Commit 76ff162

Browse files
authored
Merge pull request #7380 from magento-arcticfoxes/B2B-2134-2.4.4-develop
B2B-2134: [AWS S3] setup:config:set command is removing S3 configuration
2 parents 8c31c8f + aec3038 commit 76ff162

15 files changed

+159
-10
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertProductImageStorefrontProductPage2ActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919

2020
<seeInCurrentUrl url="/{{product.custom_attributes[url_key]}}.html" stepKey="checkUrl"/>
2121
<waitForPageLoad stepKey="waitForPageLoad"/>
22-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
22+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
2323
</actionGroup>
2424
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertProductImageStorefrontProductPageActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<seeInCurrentUrl url="/{{product.urlKey}}.html" stepKey="checkUrl"/>
2121
<waitForPageLoad stepKey="waitForPageLoad"/>
22+
<waitForElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="waitForImage"/>
2223
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
2324
</actionGroup>
2425
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontSignOutActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<click selector="{{StoreFrontSignOutSection.customerAccount}}" stepKey="clickCustomerButton"/>
1717
<click selector="{{StoreFrontSignOutSection.signOut}}" stepKey="clickToSignOut"/>
1818
<waitForPageLoad stepKey="waitForPageLoad"/>
19-
<see userInput="You are signed out" stepKey="signOut"/>
19+
<waitForText userInput="You are signed out" stepKey="signOut"/>
2020
</actionGroup>
2121
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCustomerCheckoutWithNewCustomerRegistrationAndDisableGuestCheckoutTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="createNewCustomerAccount">
6363
<argument name="customer" value="Simple_US_Customer" />
6464
</actionGroup>
65-
<click stepKey="clickCreateAccountButton" selector="{{StorefrontCustomerCreateFormSection.createAccountButton}}"/>
66-
<waitForPageLoad stepKey="waitForCreateAccountButtonToLoad"/>
65+
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="clickCreateAccountButton"/>
66+
<comment userInput="BIC workaround" stepKey="waitForCreateAccountButtonToLoad"/>
6767

6868
<!--Assert customer information-->
6969
<see stepKey="seeThankYouMessage" userInput="Thank you for registering with Main Website Store."/>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AssertOptionImageAndPriceInStorefrontProductActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
</arguments>
2020

2121
<selectOption userInput="{{label}}" selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="selectOption"/>
22-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image)}}" stepKey="seeImage"/>
22+
<waitForPageLoad stepKey="waitForOptionLoad"/>
23+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image)}}" stepKey="seeImage"/>
2324
<see userInput="{{price}}" selector="{{StorefrontProductInfoMainSection.price}}" stepKey="seeProductPrice"/>
2425
</actionGroup>
2526
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AssertOptionImageInStorefrontProductPageActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<seeInCurrentUrl url="/{{product.urlKey}}.html" stepKey="checkUrl"/>
2222
<waitForPageLoad stepKey="waitForPageLoad"/>
2323
<selectOption userInput="{{label}}" selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="selectOption1"/>
24-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeFirstImage"/>
24+
<waitForPageLoad stepKey="waitForOptionLoad"/>
25+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeFirstImage"/>
2526
</actionGroup>
2627
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontVisibilityOfDuplicateProductTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@
212212
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createConfigProduct.name$$-Updated" stepKey="seeConfigurableProductName"/>
213213
<see userInput="{{productAttributeColor.default_label}}" selector="{{StorefrontProductInfoMainSection.productAttributeTitle1}}" stepKey="seeColorAttributeName"/>
214214
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{colorConfigurableProductAttribute1.name}}" stepKey="selectFirstOption"/>
215+
<waitForPageLoad stepKey="waitForFirstOptionLoad"/>
215216
<see userInput="{{virtualProductWithRequiredFields.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertFirstOptionProductPrice"/>
216217
<seeElement selector="{{StorefrontProductMediaSection.imageFile(MagentoLogo.filename)}}" stepKey="seeFirstImage"/>
217218
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{colorConfigurableProductAttribute1.name}}" stepKey="selectSecondOption"/>
219+
<waitForPageLoad stepKey="waitForSecondOptionLoad"/>
218220
<see userInput="{{virtualProductWithRequiredFields.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="seeSecondOptionProductPrice"/>
219221
<seeElement selector="{{StorefrontProductMediaSection.imageFile(MagentoLogo.filename)}}" stepKey="seeSecondImage"/>
220222
</test>

app/code/Magento/Customer/Test/Mftf/ActionGroup/StorefrontSignOutActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<click selector="{{StoreFrontSignOutSection.customerAccount}}" stepKey="clickCustomerButton"/>
1717
<click selector="{{StoreFrontSignOutSection.signOut}}" stepKey="clickToSignOut"/>
1818
<waitForPageLoad stepKey="waitForPageLoad"/>
19-
<see userInput="You are signed out" stepKey="signOut"/>
19+
<waitForText userInput="You are signed out" stepKey="signOut"/>
2020
</actionGroup>
2121
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/AdminChangeCustomerGenderInCustomersGridTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
</annotations>
2222
<before>
2323
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
24+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
25+
<argument name="indices" value="customer_grid"/>
26+
</actionGroup>
2427
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2528
</before>
2629
<after>

app/code/Magento/RemoteStorage/Setup/ConfigOptionsList.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ public function getOptions(): array
142142
*/
143143
public function createConfig(array $options, DeploymentConfig $deploymentConfig): array
144144
{
145+
$isRemoteStorageDeploymentConfigExists = isset($deploymentConfig->getConfigData()['remote_storage']);
146+
147+
// if remote storage config is already present and driver is not in $options, return early to prevent overwrite
148+
if ($isRemoteStorageDeploymentConfigExists && !isset($options[self::OPTION_REMOTE_STORAGE_DRIVER])) {
149+
return [];
150+
}
151+
145152
$driver = $options[self::OPTION_REMOTE_STORAGE_DRIVER] ?? DriverPool::FILE;
146153

147154
if ($driver === DriverPool::FILE) {

0 commit comments

Comments
 (0)