File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 16
16
<argument name =" categoryName" type =" string" />
17
17
</arguments >
18
18
19
+ <waitForElementVisible selector =" {{StorefrontHeaderSection.NavigationCategoryByName(categoryName)}}" stepKey =" waitForCatName" time =" 120" />
19
20
<seeElement selector =" {{StorefrontHeaderSection.NavigationCategoryByName(categoryName)}}"
20
21
stepKey =" seeCatergoryInStoreFront" />
21
22
</actionGroup >
Original file line number Diff line number Diff line change 42
42
<click selector =" {{StorefrontHeaderSection.mobileMenuToggle}}" stepKey =" openSideMenu" />
43
43
<waitForElementClickable selector =" {{StorefrontHeaderSection.NavigationCategoryByName($$createParentCategory.name$$)}}" stepKey =" waitForCategoryMenuClickable" />
44
44
<click selector =" {{StorefrontHeaderSection.NavigationCategoryByName($$createParentCategory.name$$)}}" stepKey =" expandCategoryMenu" />
45
- <waitForPageLoad stepKey =" waitForSearchResult" />
45
+ <waitForPageLoad stepKey =" waitForSearchResult" time = " 60 " />
46
46
47
47
<!-- Assert the category expanded successfully -->
48
48
<actionGroup ref =" StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey =" verifySubCatMenuItemIsVisibleInTheSidebar" >
49
49
<argument name =" categoryName" value =" $$createSubCategory.name$$" />
50
50
</actionGroup >
51
51
52
52
<!-- Open the subcategory and assert it opened successfully -->
53
+ <waitForElementClickable selector =" {{StorefrontHeaderSection.NavigationCategoryByName($$createSubCategory.name$$)}}" stepKey =" waitForSubCategory" time =" 90" />
53
54
<click selector =" {{StorefrontHeaderSection.NavigationCategoryByName($$createSubCategory.name$$)}}" stepKey =" openSubCategory" />
55
+ <waitForElementVisible selector =" {{StorefrontCategoryMainSection.CategoryTitle}}" stepKey =" waitForCategoryName" time =" 90" />
54
56
<see userInput =" $$createSubCategory.name$$" selector =" {{StorefrontCategoryMainSection.CategoryTitle}}" stepKey =" assertCategoryName" />
55
57
</test >
56
58
</tests >
You can’t perform that action at this time.
0 commit comments