-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1856 from magento-engcom/2.3-develop
2.3.0 Release preparation and Regression Bug Fixes
- Loading branch information
Showing
25 changed files
with
1,143 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...ryAdminUi/Test/Mftf/Test/AdminCatalogQuickSearchForBundleProductInSingleStockModeTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCatalogQuickSearchForBundleProductInSingleStockModeTest"> | ||
<annotations> | ||
<stories value="Catalog Quick Search"/> | ||
<title value="Quick Catalog Search for Bundle Product on Single stock mode"/> | ||
<description value="Quick Catalog Search for Bundle Product on Single stock mode"/> | ||
<testCaseId value="MSI-1812"/> | ||
<severity value="AVERAGE"/> | ||
<group value="msi"/> | ||
<group value="single_mode"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="SimpleSubCategory" stepKey="category"/> | ||
<createData entity="SimpleProduct" stepKey="simpleProduct"> | ||
<requiredEntity createDataKey="category"/> | ||
</createData> | ||
|
||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/> | ||
</after> | ||
|
||
<comment userInput="Create bundle product." stepKey="createBundleProductComment"/> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPageBundle"/> | ||
<waitForPageLoad stepKey="waitForPageLoad1"/> | ||
<actionGroup ref="goToCreateProductPage" stepKey="goToCreateBundleProduct"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
<actionGroup ref="fillProductNameAndSkuInProductForm" stepKey="fillBundleProductNameAndSku"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
|
||
<comment userInput="Add bundle item." stepKey="addBundleItemComment"/> | ||
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/> | ||
<click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption"/> | ||
<waitForPageLoad stepKey="waitForPageLoad2"/> | ||
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillOptionTitle"/> | ||
<selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectInputType"/> | ||
<waitForPageLoad stepKey="waitForPageLoad3"/> | ||
<click selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="clickAddProductsToOption"/> | ||
<waitForPageLoad stepKey="waitForPageLoad4"/> | ||
<actionGroup ref="filterProductGridBySku" stepKey="filterBundleProductOptions"> | ||
<argument name="product" value="$$simpleProduct$$"/> | ||
</actionGroup> | ||
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow"/> | ||
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/> | ||
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="5" stepKey="fillProductDefaultQty"/> | ||
<actionGroup ref="AdminFormSaveAndClose" stepKey="saveAndCloseCreatedBundleProduct"/> | ||
|
||
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad5"/> | ||
|
||
<fillField userInput="{{BundleProduct.name}}" selector="{{StorefrontQuickSearchSection.searchPhrase}}" stepKey="fillSearchBar1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad6"/> | ||
<click selector="{{StorefrontQuickSearchSection.searchButton}}" stepKey="clickSearchButton"/> | ||
<seeInCurrentUrl url="{{StorefrontCatalogSearchPage.url}}" stepKey="checkUrl1"/> | ||
<seeInTitle userInput="Search results for: '{{BundleProduct.name}}'" stepKey="assertQuickSearchTitle1"/> | ||
<see userInput="Search results for: '{{BundleProduct.name}}'" selector="{{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey="assertQuickSearchName1"/> | ||
<see selector="{{CatalogSearchResultSection.productListBlock}}" userInput="{{BundleProduct.name}}" stepKey="verifyProductAppearedInSearchResults" /> | ||
</test> | ||
</tests> |
116 changes: 116 additions & 0 deletions
116
...ryAdminUi/Test/Mftf/Test/AdminCatalogQuickSearchForConfigurableProductOnTestStockTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCatalogQuickSearchForConfigurableProductOnTestStockTest"> | ||
<annotations> | ||
<stories value="Catalog Quick Search"/> | ||
<title value="Quick Catalog Search for Configurable Product on Test stock"/> | ||
<description value="Quick Catalog Search for Configurable Product on Test stock"/> | ||
<testCaseId value="MSI-1788"/> | ||
<severity value="CRITICAL"/> | ||
<group value="msi"/> | ||
<group value="multi_mode"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="FullSource1" stepKey="createSource1"/> | ||
<createData entity="BasicMsiStockWithMainWebsite1" stepKey="createStock1"/> | ||
<createData entity="SourceStockLinked1" stepKey="stockSourceLink1"> | ||
<requiredEntity createDataKey="createStock1"/> | ||
<requiredEntity createDataKey="createSource1"/> | ||
</createData> | ||
|
||
<createData entity="SimpleSubCategory" stepKey="createCategory1"/> | ||
|
||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/> | ||
</after> | ||
|
||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToAdminProductGrid"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad1"/> | ||
<click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickOnAddProductToggle"/> | ||
<click selector="{{AdminProductGridActionSection.addTypeProduct('configurable')}}" | ||
stepKey="addConfigurableProduct"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad2"/> | ||
|
||
<fillField userInput="{{ConfigurableMsiProduct.name}}" selector="{{AdminProductFormSection.productName}}" | ||
stepKey="fillProductName"/> | ||
<fillField userInput="{{ConfigurableMsiProduct.price}}" selector="{{AdminProductFormSection.productPrice}}" | ||
stepKey="fillProductPrice"/> | ||
<fillField userInput="{{ConfigurableMsiProduct.sku}}" selector="{{AdminProductFormSection.productSku}}" | ||
stepKey="fillProductSku"/> | ||
<fillField userInput="{{ConfigurableMsiProduct.quantity}}" | ||
selector="{{AdminConfigurableProductFormSection.productQuantity}}" | ||
stepKey="fillProductQuantity"/> | ||
<fillField userInput="{{ConfigurableMsiProduct.weight}}" | ||
selector="{{AdminConfigurableProductFormSection.productWeight}}" stepKey="fillProductWeight"/> | ||
|
||
<searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" | ||
parameterArray="[$$createCategory1.name$$]" stepKey="searchAndSelectCategory"/> | ||
<click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" | ||
stepKey="clickOnTheCreateConfigurationsButton"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad3"/> | ||
|
||
<click selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="selectColorAttribute"/> | ||
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToSecondStep"/> | ||
|
||
<click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="addNewColorWhite"/> | ||
<fillField userInput="{{colorProductAttribute1.name}}" | ||
selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameWhite"/> | ||
<click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveWhiteColor"/> | ||
|
||
<click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="addNewColorRed"/> | ||
<fillField userInput="{{colorProductAttribute2.name}}" | ||
selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameRed"/> | ||
<click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveRedColor"/> | ||
|
||
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToThirdStep"/> | ||
|
||
<click selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" | ||
stepKey="clickOnApplySingleQuantityToEachSku"/> | ||
|
||
<click selector="{{AdminConfigurableProductAssignSourcesSlideOut.assignSources}}" | ||
stepKey="openSelectSourcesModalWindow1"/> | ||
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" | ||
dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" | ||
stepKey="clearSourcesFilter"/> | ||
<actionGroup ref="searchAdminDataGridByKeyword" stepKey="searchCustomSourceByNameForAssignment"> | ||
<argument name="keyword" value="$$createSource1.source[name]$$"/> | ||
</actionGroup> | ||
<click selector="{{AdminGridRow.checkboxByValue($$createSource1.source[name]$$)}}" | ||
stepKey="selectCustomSource1"/> | ||
<click selector="{{AdminConfigurableProductAssignSourcesSlideOut.done}}" stepKey="doneAssignSources1"/> | ||
<fillField selector="{{AdminConfigurableProductAssignSourcesSlideOut.quantityPerSource('0')}}" | ||
userInput="100" stepKey="fillQuantityForCustomSource1"/> | ||
|
||
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToFourthStep"/> | ||
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" | ||
stepKey="doneGeneratingConfigurableVariations"/> | ||
|
||
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveConfigurableProduct"/> | ||
<conditionalClick selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" | ||
dependentSelector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" visible="true" | ||
stepKey="confirmDefaultAttributeSetForConfigurableProduct"/> | ||
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="checkProductSavedMessage"/> | ||
|
||
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad4"/> | ||
|
||
<fillField userInput="{{ConfigurableMsiProduct.name}}" selector="{{StorefrontQuickSearchSection.searchPhrase}}" stepKey="fillSearchBar1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad5"/> | ||
<click selector="{{StorefrontQuickSearchSection.searchButton}}" stepKey="clickSearchButton"/> | ||
<seeInCurrentUrl url="{{StorefrontCatalogSearchPage.url}}" stepKey="checkUrl1"/> | ||
<seeInTitle userInput="Search results for: '{{ConfigurableMsiProduct.name}}'" stepKey="assertQuickSearchTitle1"/> | ||
<see userInput="Search results for: '{{ConfigurableMsiProduct.name}}'" selector="{{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey="assertQuickSearchName1"/> | ||
<see selector="{{CatalogSearchResultSection.productListBlock}}" userInput="{{ConfigurableMsiProduct.name}}" stepKey="verifyProductAppearedInSearchResults" /> | ||
</test> | ||
</tests> |
77 changes: 77 additions & 0 deletions
77
...nUi/Test/Mftf/Test/AdminCatalogQuickSearchForDownloadableProductInSingleStockModeTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCatalogQuickSearchForDownloadableProductInSingleStockModeTest"> | ||
<annotations> | ||
<stories value="Catalog Quick Search"/> | ||
<title value="Quick Catalog Search for Downloadable Product on Single stock"/> | ||
<description value="Quick Catalog Search for Downloadable Product on Single stock"/> | ||
<testCaseId value="MSI-1814"/> | ||
<severity value="MAJOR"/> | ||
<group value="msi"/> | ||
<group value="single_mode"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="SimpleSubCategory" stepKey="simpleCategory1"/> | ||
|
||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/> | ||
</after> | ||
|
||
<comment userInput="Create downloadable product with category and link." stepKey="createDownloadableProductComment"/> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="adminProductIndexPageAdd"/> | ||
<waitForPageLoad stepKey="waitForPageLoad1"/> | ||
<actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage"> | ||
<argument name="product" value="DownloadableProduct"/> | ||
</actionGroup> | ||
<fillField selector="{{AdminProductFormSection.productName}}" userInput="{{DownloadableProduct.name}}" stepKey="fillProductSku"/> | ||
<fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{DownloadableProduct.sku}}" stepKey="fillProductName"/> | ||
<fillField selector="{{AdminProductFormSection.productPrice}}" userInput="{{DownloadableProduct.price}}" stepKey="fillProductPrice"/> | ||
|
||
<comment userInput="Assign category to product." stepKey="assignCategoryComment"/> | ||
<searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$simpleCategory1.name$$]" requiredAction="true" stepKey="searchAndSelectCategory"/> | ||
<click selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="openDownloadableSection1"/> | ||
<waitForPageLoad stepKey="waitForPageLoad2"/> | ||
<checkOption selector="{{AdminProductDownloadableSection.isDownloadableProduct}}" stepKey="checkIsDownloadable1"/> | ||
<fillField userInput="{{downloadableData.link_title}}" selector="{{AdminProductDownloadableSection.linksTitleInput}}" stepKey="fillDownloadableLinkTitle1"/> | ||
<checkOption selector="{{AdminProductDownloadableSection.isLinksPurchasedSeparately}}" stepKey="checkLinksPurchasedSeparately1"/> | ||
<fillField userInput="{{downloadableData.sample_title}}" selector="{{AdminProductDownloadableSection.samplesTitleInput}}" stepKey="fillDownloadableSampleTitle1"/> | ||
|
||
<click selector="{{AdminProductDownloadableSection.linksAddLinkButton}}" stepKey="clickLinkAddLinkButton1"/> | ||
<waitForPageLoad stepKey="waitForPageLoad3"/> | ||
<fillField userInput="{{downloadableLink.title}}" selector="{{AdminProductDownloadableSection.addLinkTitleInput('0')}}" stepKey="fillDownloadableLinkTitle2"/> | ||
<fillField userInput="{{downloadableLink.price}}" selector="{{AdminProductDownloadableSection.addLinkPriceInput('0')}}" stepKey="fillDownloadableLinkPrice2"/> | ||
<selectOption userInput="{{downloadableLink.file_type}}" selector="{{AdminProductDownloadableSection.addLinkFileTypeSelector('0')}}" stepKey="selectDownloadableLinkFileType2"/> | ||
<selectOption userInput="{{downloadableLink.sample_type}}" selector="{{AdminProductDownloadableSection.addLinkSampleTypeSelector('0')}}" stepKey="selectDownloadableLinkSampleType2"/> | ||
<selectOption userInput="{{downloadableLink.shareable}}" selector="{{AdminProductDownloadableSection.addLinkShareableSelector('0')}}" stepKey="selectDownloadableLinkShareable2"/> | ||
<checkOption selector="{{AdminProductDownloadableSection.addLinkIsUnlimitedDownloads('0')}}" stepKey="checkDownloadableLinkUnlimited2"/> | ||
<fillField userInput="{{downloadableLink.file}}" selector="{{AdminProductDownloadableSection.addLinkFileUrlInput('0')}}" stepKey="fillDownloadableLinkFileUrl2"/> | ||
<attachFile userInput="{{downloadableLink.sample}}" selector="{{AdminProductDownloadableSection.addLinkSampleUploadFile('0')}}" stepKey="attachDownloadableLinkUploadSample2"/> | ||
|
||
<fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="100" stepKey="fillProductQty1"/> | ||
<selectOption selector="{{AdminProductFormSection.productStockStatus}}" userInput="In Stock" stepKey="selectStockStatus1"/> | ||
|
||
<actionGroup ref="AdminFormSaveAndClose" stepKey="saveAndCloseCreatedVirtualProduct"/> | ||
|
||
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad4"/> | ||
|
||
<fillField userInput="{{DownloadableProduct.name}}" selector="{{StorefrontQuickSearchSection.searchPhrase}}" stepKey="fillSearchBar1"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad5"/> | ||
<click selector="{{StorefrontQuickSearchSection.searchButton}}" stepKey="clickSearchButton"/> | ||
<seeInCurrentUrl url="{{StorefrontCatalogSearchPage.url}}" stepKey="checkUrl1"/> | ||
<seeInTitle userInput="Search results for: '{{DownloadableProduct.name}}'" stepKey="assertQuickSearchTitle1"/> | ||
<see userInput="Search results for: '{{DownloadableProduct.name}}'" selector="{{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey="assertQuickSearchName1"/> | ||
<see selector="{{CatalogSearchResultSection.productListBlock}}" userInput="{{DownloadableProduct.name}}" stepKey="verifyProductAppearedInSearchResults" /> | ||
</test> | ||
</tests> |
Oops, something went wrong.