Skip to content

Commit a24925f

Browse files
author
Oleksandr Gorkun
committed
MC-24063: [2.4.x Port] Implement CSP
1 parent 55f7806 commit a24925f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@
156156
<see userInput="This product is out of stock." stepKey="seeTheErrorMessageDisplayed"/>
157157
<!-- Select shipping method -->
158158
<comment userInput="Select shipping method" stepKey="selectShippingMethod"/>
159-
<!-- Shipping is not available because we couldn't add the product -->
160159
<click selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" stepKey="openShippingMethod"/>
161160
<waitForPageLoad stepKey="waitForShippingMethods"/>
162-
<waitForElementVisible selector="{{AdminInvoicePaymentShippingSection.shippingNotAvailable}}" stepKey="checkThatShippingIsUnavailable"/>
161+
<click selector="{{AdminInvoicePaymentShippingSection.shippingMethod}}" stepKey="chooseShippingMethod"/>
162+
<waitForPageLoad stepKey="waitForShippingMethodLoad"/>
163163
<click selector="{{AdminOrderFormActionSection.SubmitOrder}}" stepKey="clickSubmitOrder"/>
164164
<waitForPageLoad stepKey="waitForError"/>
165-
<!-- Check order could not be created without products -->
165+
<!-- Check that error remains -->
166166
<actionGroup ref="AssertAdminItemOrderedErrorActionGroup" stepKey="assertProductErrorRemains">
167167
<argument name="productName" value="$createConfigChildProduct2.name$"/>
168168
<argument name="messageType" value="error"/>
169-
<argument name="message" value="Validation is failed"/>
169+
<argument name="message" value="This product is out of stock."/>
170170
</actionGroup>
171171
</test>
172172
</tests>

app/code/Magento/Sales/Test/Mftf/Section/AdminInvoicePaymentShippingSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@
1919
<element name="shippingMethod" type="button" selector="//label[contains(text(), 'Fixed')]" timeout="60"/>
2020
<element name="fixedPriceShippingMethod" type="button" selector="#s_method_{{methodName}}_{{methodTitle}}" parameterized="true"/>
2121
<element name="getShippingMethod" type="button" selector="#order-shipping-method-summary a"/>
22-
<element name="shippingNotAvailable" type="button" selector=".order-shipping-method-summary .order-shipping-method-not-available"/>
2322
</section>
2423
</sections>

0 commit comments

Comments
 (0)