Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI-1138: [Sales-Shipments] Admin user created partial shipment for order with Simple product from Test source and main website. #1201

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="AssignSourceToProductActionGroup">
<arguments>
<argument name="sourceCode"/>
</arguments>

<click selector="{{AdminProductSourcesSection.assignSources}}" stepKey="clickOnAssignSource1"/>
<conditionalClick selector="{{AdminGridFilterControls.clearAll}}"
dependentSelector="{{AdminManageSourcesGridFilterControls.dropDown}}" visible="true"
stepKey="clearTheFiltersIfPresent"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>

<fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{sourceCode}}" stepKey="fillKeywordSearchField"/>
<click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/>
<waitForPageLoad time="5" stepKey="waitForPageLoad"/>
<click selector="{{AdminAssignSourcesSlideOutGridSection.checkboxByCode(sourceCode)}}"
stepKey="clickOnCheckbox1"/>
<click selector="{{AdminAssignSourcesSlideOutSection.done}}" stepKey="clickOnDone"/>
<waitForPageLoad time="5" stepKey="waitForSlideClosed"/>

</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="AssignSourceToStockActionGroup">
<arguments>
<argument name="stockName"/>
<argument name="sourceName"/>
</arguments>

<amOnPage url="{{AdminManageStockPage.url}}" stepKey="amOnTheManageStockPage"/>
<waitForPageLoad time="30" stepKey="waitForManageStockPageLoad"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearStockFilters"/>
<waitForPageLoad stepKey="waitForClearFilters" time="30"/>
<click selector="{{AdminGridFilterControls.filters}}" stepKey="clickOnFilters"/>
<waitForPageLoad time="30" stepKey="waitForFiltersLoad"/>
<fillField userInput="{{stockName}}" selector="{{AdminManageStockGridFilterControls.name}}" stepKey="fillFilterField"/>
<click selector="{{AdminGridFilterControls.applyFilters}}" stepKey="clickOnApplyFilters"/>
<waitForPageLoad time="30" stepKey="waitForFiltersAppled"/>
<click selector="{{AdminGridRow.editByValue(stockName)}}" stepKey="clickOnEditStock"/>
<waitForPageLoad time="30" stepKey="waitForStockPage"/>

<click selector="{{AdminEditStockSourcesSection.assignSources}}" stepKey="clickOnAssignSources"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearSourceFilters"/>
<fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{sourceName}}" stepKey="fillKeywordSearchField"/>
<click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/>
<waitForPageLoad time="30" stepKey="waitForKeywordSearch"/>
<click selector="{{AdminGridRow.checkboxByValue(sourceName)}}" stepKey="clickOnTheCheckboxForSource"/>
<click selector="{{AdminManageSourcesGridControls.done}}" stepKey="clickOnDone"/>
<waitForPageLoad time="30" stepKey="waitSourceAssigned"/>
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickOnSaveAndContinue"/>

</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
<page name="AdminSourceSelectionPage" url="/inventoryshipping/SourceSelection/index/" area="admin" module="Magento_Inventory_Source_Selection">
<section name="AdminSourceSelectionControlsSection"/>
<section name="AdminSelectSourceSection"/>
<section name="AdminItemsOrderedSection"/>
</page>
</pages>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminItemsOrderedSection">
<element name="product" type="text"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='product'] span.admin__field-value"
parameterized="true"/>
<element name="sku" type="text"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='sku'] span[name='items[{{arg1}}][sku]']"
parameterized="true"/>
<element name="qtyToShip" type="text"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='qtyToShip'] span[data-index='qtyToShip']"
parameterized="true"/>
<element name="availableSourcesSource" type="text"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='sources'] table[data-index='sources'] tr.data-row[data-repeat-index='{{arg2}}'] span[data-index='sourceName']"
parameterized="true"/>
<element name="availableSourcesQtyAvailable" type="text"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='sources'] table[data-index='sources'] tr.data-row[data-repeat-index='{{arg2}}'] span[data-index='qtyAvailable']"
parameterized="true"/>
<element name="availableSourcesQtyToDeduct" type="input"
selector="tr[data-repeat-index='{{arg1}}'] td[data-index='sources'] table[data-index='sources'] tr.data-row[data-repeat-index='{{arg2}}'] div[data-index='qtyToDeduct'] input[name='items[{{arg1}}][sources][{{arg2}}][qtyToDeduct]']"
parameterized="true"/>
</section>
</sections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminSelectSourceSection">
<element name="sourceSelection" type="select" selector="div[data-index='source_selection'] select[name='sourceCode']"/>
</section>
</sections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminSourceSelectionControlsSection">
<element name="backButton" type="button" selector="#back"/>
<element name="proceedToShipmentButton" type="button" selector="#save"/>
<element name="sourceSelectionAlgorithmButton" type="button" selector="#source_selection_algorithms-button"/>
<element name="sourceSelectionAlgorithmDropdown" type="button" selector="button.action-toggle[data-ui-id='source-selection-algorithms-button-dropdown']"/>
</section>
</sections>
Loading