Skip to content

Commit c084ea4

Browse files
Sahil.kumarManjusha.S
authored andcommitted
added assert for disable product
1 parent 245383c commit c084ea4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/ChangeScopeForProductStatusAttributeTest.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,16 @@
106106

107107
<!-- Change status of product to "Disable" and save it -->
108108
<actionGroup ref="AdminSetProductDisabledActionGroup" stepKey="disableProduct"/>
109-
<actionGroup ref="SaveProductFormActionGroup" stepKey="clickSaveProduct1"/>
109+
<actionGroup ref="SaveProductFormActionGroup" stepKey="clickSaveProduct"/>
110110

111111
<!--Switch to Store view 2 -->
112112
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="SwitchNewStoreView2">
113113
<argument name="storeViewName" value="{{storeViewData2.name}}"/>
114114
</actionGroup>
115115

116+
<!-- Verify that product is disable -->
117+
<seeElement selector="{{AdminProductFormSection.productStatusValue('0')}}" stepKey="assertThatProductSetToDisabled"/>
118+
116119
<!-- Enable the product for the second storeview -->
117120
<waitForElementVisible selector="{{AdminProductFormSection.enableProductLabel}}" stepKey="waitForProductEnableSlider"/>
118121
<actionGroup ref="ToggleProductEnabledActionGroup" stepKey="enableProduct"/>
@@ -126,6 +129,6 @@
126129
</actionGroup>
127130

128131
<!-- Verify that product is enable -->
129-
<seeElement selector="{{AdminProductFormSection.productStatusValue('1')}}" stepKey="assertThatProductSetToEnabled2"/>
132+
<seeElement selector="{{AdminProductFormSection.productStatusValue('1')}}" stepKey="assertThatProductSetToEnabledAgain"/>
130133
</test>
131134
</tests>

0 commit comments

Comments
 (0)