Skip to content

Commit a830004

Browse files
ivy00johnsimeron2433
authored andcommitted
MQE-592: Test Case Audit
- Adjusting the waitForPageLoads time values.
1 parent 1233ea6 commit a830004

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Cest/AdminCreateCategoryCest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@
2626
<env value="chrome"/>
2727
<env value="headless"/>
2828
</annotations>
29-
<amOnPage url="{{AdminLoginPage.url}}" stepKey="amOnAdminLoginPage"/>
30-
<fillField selector="{{AdminLoginFormSection.username}}" userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" stepKey="fillUsername"/>
31-
<fillField selector="{{AdminLoginFormSection.password}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="fillPassword"/>
32-
<click selector="{{AdminLoginFormSection.signIn}}" stepKey="clickOnSignIn"/>
29+
<loginAsAdmin stepKey="loginAsAdmin"/>
3330
<amOnPage url="{{AdminCategoryPage.url}}" stepKey="navigateToCategoryPage"/>
34-
<waitForPageLoad stepKey="waitForPageLoad1"/>
31+
<waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
3532
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/>
3633
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/>
3734
<click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="openSEO"/>
@@ -41,7 +38,6 @@
4138

4239
<!-- Literal URL below, need to refactor line + StorefrontCategoryPage when support for variable URL is implemented-->
4340
<amOnPage url="/{{SimpleSubCategory.name_lwr}}.html" stepKey="goToCategoryFrontPage"/>
44-
<waitForPageLoad stepKey="waitForPageLoad2"/>
4541
<seeInTitle userInput="{{SimpleSubCategory.name}}" stepKey="assertTitle"/>
4642
<see selector="{{StorefrontCategoryMainSection.CategoryTitle}}" userInput="{{SimpleSubCategory.name_lwr}}" stepKey="assertInfo1"/>
4743
</test>

0 commit comments

Comments
 (0)