File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/Catalog/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 40
40
41
41
<!-- Create a Simple Product -->
42
42
<amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" navigateToCatalogProductGrid" />
43
- <waitForPageLoad time = " 30 " stepKey =" waitForProductsGridPageLoad" />
43
+ <waitForPageLoad stepKey =" waitForProductsGridPageLoad" />
44
44
<click selector =" {{AdminProductGridActionSection.addProductToggle}}" stepKey =" clickAddProductDropdown" />
45
45
<click selector =" {{AdminProductGridActionSection.addSimpleProduct}}" stepKey =" clickAddSimpleProduct" />
46
- <!-- Need to wait because fields are loaded a little bit later then it starts to fill them -->
47
- <waitForElementVisible selector =" {{AdminProductFormSection.productName}}" stepKey =" waitForNameFieldVisible" />
46
+ <waitForPageLoad stepKey =" waitForPageProductFormLoad" />
48
47
<fillField userInput =" {{_defaultProduct.name}}" selector =" {{AdminProductFormSection.productName}}" stepKey =" fillProductName" />
49
48
<fillField userInput =" {{_defaultProduct.sku}}" selector =" {{AdminProductFormSection.productSku}}" stepKey =" fillProductSKU" />
50
49
<fillField userInput =" {{_defaultProduct.price}}" selector =" {{AdminProductFormSection.productPrice}}" stepKey =" fillProductPrice" />
54
53
<click selector =" {{ProductInWebsitesSection.sectionHeader}}" stepKey =" openProductInWebsites" />
55
54
<click selector =" {{ProductInWebsitesSection.website('Second Website')}}" stepKey =" selectSecondWebsite" />
56
55
<click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" clickSave" />
57
- <waitForLoadingMaskToDisappear stepKey =" waitForProductPageSave " />
56
+ <waitForPageLoad stepKey =" waitForProductSave " />
58
57
<seeElement selector =" {{AdminProductMessagesSection.successMessage}}" stepKey =" seeSaveProductMessage" />
59
58
60
59
<!-- switch to the second store view -->
You can’t perform that action at this time.
0 commit comments