File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
CatalogInventory/Test/Mftf/Test
Catalog/Test/Mftf/Section Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
<element name =" addToCartBtn" type =" button" selector =" button.action.tocart.primary" timeout =" 30" />
14
14
<element name =" successMsg" type =" button" selector =" div.message-success" timeout =" 30" />
15
15
<element name =" errorMsg" type =" button" selector =" div.message-error" timeout =" 30" />
16
+ <element name =" errorMsgText" type =" button" selector =" div.message-error > div" timeout =" 30" />
16
17
<element name =" alertMessage" type =" text" selector =" .page.messages [role=alert]" />
17
18
<element name =" messagesBlock" type =" text" selector =" .page.messages" timeout =" 30" />
18
19
<element name =" addToWishlist" type =" button" selector =" //a[@class='action towishlist']" timeout =" 30" />
Original file line number Diff line number Diff line change 17
17
<severity value =" CRITICAL" />
18
18
<testCaseId value =" AC-5262" />
19
19
<group value =" cloud" />
20
- <!-- Will be fixed in scope of ACQE-7385 -->
21
- <group value =" pr_exclude" />
22
20
</annotations >
23
-
24
21
<before >
25
22
<!-- Set Enable Inventory Check On Cart Load = No -->
26
23
<magentoCLI command =" config:set {{DisableInventoryCheckOnCartLoad.path}} {{DisableInventoryCheckOnCartLoad.value}}" stepKey =" disableCartLoad" />
46
43
<magentoCLI command =" config:set {{EnableInventoryCheckOnCartLoad.path}} {{EnableInventoryCheckOnCartLoad.value}}" stepKey =" enableCartLoad" />
47
44
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
48
45
</after >
46
+ <!-- Mouse Hover Product On Category Page initial check-->
47
+ <actionGroup ref =" StorefrontHoverProductOnCategoryPageActionGroup" stepKey =" hoverProductInitial" />
49
48
<!-- Open New tab-->
50
49
<openNewTab stepKey =" openNewTab" />
51
50
<!-- Open Product From AdminPage-->
66
65
<!-- Select Add to cart-->
67
66
<waitForElementClickable selector =" {{StorefrontCategoryMainSection.AddToCartBtn}}" stepKey =" waitForAddToCartButton" />
68
67
<click selector =" {{StorefrontCategoryMainSection.AddToCartBtn}}" stepKey =" toCategory" />
69
- <waitForElementVisible selector =" {{StorefrontProductPageSection.errorMsg}}" stepKey =" wait" />
68
+ <waitForPageLoad stepKey =" waitForPage" />
69
+ <waitForElementVisible selector =" {{StorefrontProductPageSection.errorMsgText}}" stepKey =" wait" />
70
70
<!-- Assert the Error Message-->
71
- <see selector =" {{StorefrontProductPageSection.errorMsg }}" userInput =" Product that you are trying to add is not available." stepKey =" seeErrorMessage" />
71
+ <see selector =" {{StorefrontProductPageSection.errorMsgText }}" userInput =" Product that you are trying to add is not available." stepKey =" seeErrorMessage" />
72
72
</test >
73
-
74
73
</tests >
You can’t perform that action at this time.
0 commit comments