Skip to content

Commit

Permalink
Merge pull request #2420 from magento-pangolin/MQE-920-MSI-MFTF-Test-…
Browse files Browse the repository at this point in the history
…Cases-2

[pangolin] MQE-920: [MSI] MFTF MSI Test Cases 2
  • Loading branch information
okolesnyk authored Apr 24, 2018
2 parents 65eb999 + 66015ff commit 1d35fa6
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<argument name="productVar"/>
</arguments>
<seeElement selector="{{StorefrontProductCompareMainSection.ProductLinkByName(productVar.name)}}" stepKey="assertProductName"/>
<see userInput="${{productVar.price}}.00" selector="{{StorefrontProductCompareMainSection.ProductPriceByName(productVar.name)}}" stepKey="assertProductPrice"/>
<see userInput="{{productVar.sku}}" selector="{{StorefrontProductCompareMainSection.ProductAttributeByCodeAndProductName('SKU', productVar.name)}}" stepKey="assertProductPrice"/>
<see userInput="${{productVar.price}}.00" selector="{{StorefrontProductCompareMainSection.ProductPriceByName(productVar.name)}}" stepKey="assertProductPrice1"/>
<see userInput="{{productVar.sku}}" selector="{{StorefrontProductCompareMainSection.ProductAttributeByCodeAndProductName('SKU', productVar.name)}}" stepKey="assertProductPrice2"/>
<!-- @TODO: MAGETWO-80272 Move to Magento_Checkout -->
<seeElement selector="{{StorefrontProductCompareMainSection.ProductAddToCartByName(productVar.name)}}" stepKey="assertProductAddToCart"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<actionGroup name="StorefrontOpenAdvancedSearchActionGroup">
<click selector="{{StorefrontFooterSection.AdvancedSearch}}" stepKey="clickAdvancedSearchLink" />
<seeInCurrentUrl url="{{StorefrontCatalogSearchAdvancedFormPage.url}}" stepKey="checkUrl"/>
<seeInTitle userInput="Advanced Search" stepKey="assertAdvancedSearchTitle"/>
<see userInput="Advanced Search" selector="{{StorefrontCatalogSearchAdvancedFormSection.SearchTitle}}" stepKey="assertAdvancedSearchTitle"/>
<seeInTitle userInput="Advanced Search" stepKey="assertAdvancedSearchTitle1"/>
<see userInput="Advanced Search" selector="{{StorefrontCatalogSearchAdvancedFormSection.SearchTitle}}" stepKey="assertAdvancedSearchTitle2"/>
</actionGroup>

<!-- Check that Advanced Search result page contains correct information -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<element name="CheckIfTabExpand" type="button" selector="#general_store_information-head:not(.open)"/>
<element name="StoreInformation" type="button" selector="#general_store_information-head"/>
<element name="City" type="input" selector="#general_store_information_city"/>
<element name="Save" type="button" selector="#save"/>
<element name="Save" type="button" selector="#save" timeout="30"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<argument name="optionProduct"/>
</arguments>
<seeElement selector="{{StorefrontProductCompareMainSection.ProductLinkByName(product.name)}}" stepKey="assertProductName"/>
<see userInput="${{optionProduct.price}}.00" selector="{{StorefrontProductCompareMainSection.ProductPriceByName(product.name)}}" stepKey="assertProductPrice"/>
<see userInput="{{product.sku}}" selector="{{StorefrontProductCompareMainSection.ProductAttributeByCodeAndProductName('SKU', product.name)}}" stepKey="assertProductPrice"/>
<see userInput="${{optionProduct.price}}.00" selector="{{StorefrontProductCompareMainSection.ProductPriceByName(product.name)}}" stepKey="assertProductPrice1"/>
<see userInput="{{product.sku}}" selector="{{StorefrontProductCompareMainSection.ProductAttributeByCodeAndProductName('SKU', product.name)}}" stepKey="assertProductPrice2"/>
<!-- @TODO: MAGETWO-80272 Move to Magento_Checkout -->
<seeElement selector="{{StorefrontProductCompareMainSection.ProductAddToCartByName(product.name)}}" stepKey="assertProductAddToCart"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<element name="attributeCode" type="input" selector=".admin__control-text[name='attribute_code']"/>
<element name="applyFilters" type="button" selector="button[data-action='grid-filter-apply']" timeout="30"/>
<element name="firstCheckbox" type="input" selector="tr[data-repeat-index='0'] .admin__control-checkbox"/>
<element name="id" type="text" selector="//tr[contains(@data-repeat-index, '0')]/td[2]/div"/>

<element name="selectAll" type="button" selector=".action-select-all"/>
<element name="createNewValue" type="input" selector=".action-create-new" timeout="30"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,21 @@
<element name="currentVariationsQuantityCells" type="textarea" selector=".admin__control-fields[data-index='quantity_container']"/>
<element name="currentVariationsAttributesCells" type="textarea" selector=".admin__control-fields[data-index='attributes']"/>
</section>
<section name="AdminConfigurableProductFormSection">
<element name="productWeight" type="input" selector=".admin__control-text[name='product[weight]']"/>
<element name="productQuantity" type="input" selector=".admin__control-text[name='product[quantity_and_stock_status][qty]']"/>
<element name="currentVariationsQuantityCells" type="button" selector="td[data-index='quantity_per_source_container']"/>
<element name="rowByCode" type="textarea" selector="//span[contains(text(), '{{var1}}-{{var2}}')]//ancestor-or-self::tr" parameterized="true"/>
</section>
<section name="AdminConfigurableProductSelectAttributesSlideOut">
<element name="grid" type="button" selector=".admin__data-grid-wrap tbody"/>
</section>
<section name="AdminConfigurableProductAssignSourcesSlideOut">
<element name="done" type="button" selector=".product_form_product_form_assign_sources_configurable_modal .action-primary" timeout="5"/>
<element name="assignSources" type="button" selector="(//button/span[contains(text(), 'Assign Sources')])[2]" timeout="5"/>
<element name="quantityPerSource" type="input" selector="input[name='quantity_resolver[dynamicRows][dynamicRows][0][quantity_per_source]']"/>
</section>
<section name="StorefrontConfigurableProductPage">
<element name="productAttributeDropDown" type="select" selector="select[id*='attribute']"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminNewStoreGroupSection">
<element name="storeGrpWebsiteDropdown" type="select" selector="#group_website_id"/>
<element name="storeGrpNameTextField" type="input" selector="#group_name"/>
<element name="storeGrpCodeTextField" type="input" selector="#group_code"/>
<element name="storeRootCategoryDropdown" type="button" selector="#group_root_category_id"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminNewWebsiteSection">
<element name="name" type="input" selector="#website_name"/>
<element name="code" type="input" selector="#website_code"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
*/
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminStoresGridControlsSection">
<element name="createStoreView" type="button" selector="#add_store"/>
<element name="createStore" type="button" selector="#add_group"/>
<element name="createWebsite" type="button" selector="#add"/>
</section>
<section name="AdminStoresGridSection">
<element name="storeGrpFilterTextField" type="input" selector="#storeGrid_filter_group_title"/>
<element name="websiteFilterTextField" type="input" selector="#storeGrid_filter_website_title"/>
Expand All @@ -15,6 +20,6 @@
<element name="websiteNameInFirstRow" type="text" selector=".col-website_title>a"/>
<element name="storeGrpNameInFirstRow" type="text" selector=".col-group_title>a"/>
<element name="storeNameInFirstRow" type="text" selector=".col-store_title>a"/>

</section>
<element name="firstRow" type="textarea" selector="(//*[@id='storeGrid_table']/tbody/tr)[1]"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminStoresMainActionsSection">
<element name="createStoreViewButton" type="button" selector="#add_store"/>
<element name="createStoreButton" type="button" selector="#add_group"/>
<element name="createWebsiteButton" type="button" selector="#add"/>
<element name="saveButton" type="button" selector="#save"/>
<element name="backButton" type="button" selector="#back"/>
<element name="createStoreViewButton" type="button" selector="#add_store" timeout="30"/>
<element name="createStoreButton" type="button" selector="#add_group" timeout="30"/>
<element name="createWebsiteButton" type="button" selector="#add" timeout="30"/>
<element name="saveButton" type="button" selector="#save" timeout="30"/>
<element name="backButton" type="button" selector="#back" timeout="30"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</arguments>

<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
<waitForPageLoad stepKey="waitForPageLoad" time="5"/>

<fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{keyword}}" stepKey="fillKeywordSearchField"/>
<click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@
<element name="cancel" type="button" selector="button[data-action='grid-filter-cancel']" timeout="30"/>
<element name="clearAll" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] button[data-action='grid-filter-reset']" timeout="5"/>
</section>
<!-- TODO: "Default View" drop down menu -->
<section name="AdminGridDefaultViewControls">
<element name="defaultView" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-action-bookmarks" timeout="5"/>
<element name="viewByName" type="button" selector="//a[@class='action-dropdown-menu-link'][contains(text(), '{{var1}}')]" parameterized="true" timeout="5"/>
<element name="saveViewAs" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-dropdown-menu-item-last a" timeout="5"/>
<element name="viewName" type="input" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] ._edit input"/>
<element name="save" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] ._edit button" timeout="30"/>
</section>
<section name="AdminGridColumnsControls">
<element name="columns" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-action-columns"/>
<element name="columns" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-action-columns" timeout="5"/>

<element name="columnName" type="button" selector="//label[contains(text(), '{{var1}}')]" parameterized="true" timeout="1"/>
<element name="columnName" type="button" selector="//label[contains(text(), '{{var1}}')]" parameterized="true" timeout="5"/>

<element name="reset" type="button" selector="//div[@class='admin__action-dropdown-menu-footer']/div/button[contains(text(), 'Reset')]" timeout="5"/>
<element name="cancel" type="button" selector="//div[@class='admin__action-dropdown-menu-footer']/div/button[contains(text(), 'Cancel')]" timeout="5"/>
</section>
<section name="AdminGridActionsMenu">
<element name="dropDown" type="select" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-select" timeout="30"/>
<element name="delete" type="select" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-menu-items li" timeout="5"/>
</section>
<section name="AdminGridRowsPerPage">
<element name="count" type="select" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .selectmenu-value input" timeout="30"/>
Expand Down

0 comments on commit 1d35fa6

Please sign in to comment.