Skip to content

Commit f350f17

Browse files
committed
833: MSI MFTF Test Cases 2
- Skipping a few Tests due to a Bug in MSI. magento#815 Adding notes to the tests and links for the Bugs. - Adding a few <waitForPageLoad/> to correct a few timing issues.
1 parent 8d292ba commit f350f17

7 files changed

+25
-6
lines changed

app/code/Magento/Inventory/Test/Acceptance/Test/AdminAddRemoveStockColumnsTest.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
</annotations>
2121

2222
<before>
23+
<createData entity="_defaultStock" stepKey="createStock1"/>
2324
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2425
<amOnPage url="{{ManageStock.url}}" stepKey="amOnStockListPage1"/>
2526
<waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
@@ -34,22 +35,22 @@
3435

3536
<see selector="{{AdminGridHeaders.headerByName('ID')}}" userInput="ID" stepKey="seeTheHeaderId1"/>
3637
<see selector="{{AdminGridHeaders.headerByName('Name')}}" userInput="Name" stepKey="seeTheHeaderName1"/>
37-
<see selector="{{AdminGridHeaders.headerByName('Sales Channel')}}" userInput="Sales Channel" stepKey="seeTheHeaderSalesChannel1"/>
38+
<see selector="{{AdminGridHeaders.headerByName('Sales Channels')}}" userInput="Sales Channels" stepKey="seeTheHeaderSalesChannel1"/>
3839
<see selector="{{AdminGridHeaders.headerByName('Action')}}" userInput="Action" stepKey="seeTheHeaderAction1"/>
3940

4041
<click selector="{{AdminGridColumnsControls.reset}}" stepKey="clickOnResetColumnReaders1"/>
4142
<click selector="{{AdminGridColumnsControls.columnName('ID')}}" stepKey="disableIdColumn1"/>
4243
<click selector="{{AdminGridColumnsControls.columnName('Name')}}" stepKey="disableNameColumn1"/>
43-
<click selector="{{AdminGridColumnsControls.columnName('Sales Channel')}}" stepKey="disableSalesChannelColumn1"/>
44+
<click selector="{{AdminGridColumnsControls.columnName('Sales Channels')}}" stepKey="disableSalesChannelColumn1"/>
4445
<see selector="{{AdminGridHeaders.headerByName('Action')}}" userInput="Action" stepKey="seeTheHeaderAction2"/>
4546
<dontSee selector="{{AdminGridHeaders.headerByName('ID')}}" userInput="ID" stepKey="dontSeeIdColumn1"/>
4647
<dontSee selector="{{AdminGridHeaders.headerByName('Name')}}" userInput="Name" stepKey="dontSeeNameColumn1"/>
47-
<dontSee selector="{{AdminGridHeaders.headerByName('Sales Channel')}}" userInput="Sales Channel" stepKey="dontSeeSalesChannelColumn1"/>
48+
<dontSee selector="{{AdminGridHeaders.headerByName('Sales Channels')}}" userInput="Sales Channels" stepKey="dontSeeSalesChannelColumn1"/>
4849

4950
<click selector="{{AdminGridColumnsControls.reset}}" stepKey="clickOnResetColumnReaders2"/>
5051
<see selector="{{AdminGridHeaders.headerByName('ID')}}" userInput="ID" stepKey="seeTheHeaderId2"/>
5152
<see selector="{{AdminGridHeaders.headerByName('Name')}}" userInput="Name" stepKey="seeTheHeaderName2"/>
52-
<see selector="{{AdminGridHeaders.headerByName('Sales Channel')}}" userInput="Sales Channel" stepKey="seeTheHeaderSalesChannel2"/>
53+
<see selector="{{AdminGridHeaders.headerByName('Sales Channels')}}" userInput="Sales Channels" stepKey="seeTheHeaderSalesChannel2"/>
5354
<see selector="{{AdminGridHeaders.headerByName('Action')}}" userInput="Action" stepKey="seeTheHeaderAction3"/>
5455

5556
<click selector="{{AdminGridColumnsControls.columnName('ID')}}" stepKey="disableIdColumn3"/>
@@ -59,7 +60,7 @@
5960

6061
<see selector="{{AdminGridHeaders.headerByName('ID')}}" userInput="ID" stepKey="seeTheHeaderId3"/>
6162
<see selector="{{AdminGridHeaders.headerByName('Name')}}" userInput="Name" stepKey="seeTheHeaderName3"/>
62-
<see selector="{{AdminGridHeaders.headerByName('Sales Channel')}}" userInput="Sales Channel" stepKey="seeTheHeaderSalesChannel3"/>
63+
<see selector="{{AdminGridHeaders.headerByName('Sales Channels')}}" userInput="Sales Channels" stepKey="seeTheHeaderSalesChannel3"/>
6364
<see selector="{{AdminGridHeaders.headerByName('Action')}}" userInput="Action" stepKey="seeTheHeaderAction4"/>
6465
</test>
6566
</tests>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminCreateNewSourceTest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
</annotations>
2121

2222
<before>
23+
<createData entity="FullSource1" stepKey="createSource1"/>
2324
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2425
</before>
2526
<after>
@@ -38,19 +39,22 @@
3839
<fillField userInput="{{FullSource1.longitude}}" selector="{{AdminEditSourceGeneralSection.longitude}}" stepKey="fillLongitudeField1"/>
3940

4041
<conditionalClick selector="{{AdminEditSourceContactInfoSection.closed}}" dependentSelector="{{AdminEditSourceContactInfoSection.opened}}" visible="false" stepKey="clickOnContactInfo1"/>
42+
<waitForPageLoad time="5" stepKey="waitForPageLoad1"/>
4143
<fillField userInput="{{FullSource1.contact_name}}" selector="{{AdminEditSourceContactInfoSection.contactName}}" stepKey="fillContactNameField1"/>
4244
<fillField userInput="{{FullSource1.email}}" selector="{{AdminEditSourceContactInfoSection.email}}" stepKey="fillEmailField1"/>
4345
<fillField userInput="{{FullSource1.phone}}" selector="{{AdminEditSourceContactInfoSection.phone}}" stepKey="fillPhoneField1"/>
4446
<fillField userInput="{{FullSource1.fax}}" selector="{{AdminEditSourceContactInfoSection.fax}}" stepKey="fillFaxField1"/>
4547

4648
<conditionalClick selector="{{AdminEditSourceAddressDataSection.closed}}" dependentSelector="{{AdminEditSourceAddressDataSection.opened}}" visible="false" stepKey="clickOnAddresses1"/>
49+
<waitForPageLoad time="5" stepKey="waitForPageLoad2"/>
4750
<selectOption userInput="{{FullSource1.country}}" selector="{{AdminEditSourceAddressDataSection.country}}" stepKey="selectCountry1"/>
4851
<selectOption userInput="{{FullSource1.stateProvince}}" selector="{{AdminEditSourceAddressDataSection.state}}" stepKey="selectState1"/>
4952
<fillField userInput="{{FullSource1.city}}" selector="{{AdminEditSourceAddressDataSection.city}}" stepKey="fillCityField1"/>
5053
<fillField userInput="{{FullSource1.street}}" selector="{{AdminEditSourceAddressDataSection.street}}" stepKey="fillStreetField1"/>
5154
<fillField userInput="{{FullSource1.postcode}}" selector="{{AdminEditSourceAddressDataSection.postcode}}" stepKey="fillPostcodeField1"/>
5255

5356
<conditionalClick selector="{{AdminEditSourceCarriersSection.closed}}" dependentSelector="{{AdminEditSourceCarriersSection.opened}}" visible="false" stepKey="clickOnCarriers1"/>
57+
<waitForPageLoad time="5" stepKey="waitForPageLoad3"/>
5458
<checkOption selector="{{AdminEditSourceCarriersSection.useGlobalShippingConfiguration}}" stepKey="checkUseGlobalShippingConfiguration1"/>
5559

5660
<click selector="{{AdminGridMainControls.saveAndContinue}}" stepKey="clickOnSaveAndContinue"/>
@@ -62,12 +66,14 @@
6266
<seeInField selector="{{AdminEditSourceGeneralSection.longitude}}" userInput="0" stepKey="seeLongitudeInField"/>
6367

6468
<conditionalClick selector="{{AdminEditSourceContactInfoSection.closed}}" dependentSelector="{{AdminEditSourceContactInfoSection.opened}}" visible="false" stepKey="clickOnContactInfo3"/>
69+
<waitForPageLoad time="5" stepKey="waitForPageLoad4"/>
6570
<seeInField selector="{{AdminEditSourceContactInfoSection.contactName}}" userInput="{{FullSource1.contact_name}}" stepKey="seeContactNameInField"/>
6671
<seeInField selector="{{AdminEditSourceContactInfoSection.email}}" userInput="{{FullSource1.email}}" stepKey="seeEmailInField"/>
6772
<seeInField selector="{{AdminEditSourceContactInfoSection.phone}}" userInput="{{FullSource1.phone}}" stepKey="seePhoneInField"/>
6873
<seeInField selector="{{AdminEditSourceContactInfoSection.fax}}" userInput="{{FullSource1.fax}}" stepKey="seeFaxInField"/>
6974

7075
<conditionalClick selector="{{AdminEditSourceAddressDataSection.closed}}" dependentSelector="{{AdminEditSourceAddressDataSection.opened}}" visible="false" stepKey="clickOnAddresses3"/>
76+
<waitForPageLoad time="5" stepKey="waitForPageLoad5"/>
7177
<seeOptionIsSelected selector="{{AdminEditSourceAddressDataSection.country}}" userInput="{{FullSource1.country}}" stepKey="seeCountryInDropDown"/>
7278
<seeOptionIsSelected selector="{{AdminEditSourceAddressDataSection.state}}" userInput="{{FullSource1.stateProvince}}" stepKey="seeStateProvinceInDropDown"/>
7379
<seeInField selector="{{AdminEditSourceAddressDataSection.city}}" userInput="{{FullSource1.city}}" stepKey="seeCityInField"/>
@@ -77,6 +83,7 @@
7783
<amOnPage url="{{ManageSources.url}}" stepKey="amOnTheSourcesListPage2"/>
7884

7985
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
86+
<waitForPageLoad time="5" stepKey="waitForPageLoad6"/>
8087
<actionGroup ref="AdminGridFilterSearchResultsByInput" stepKey="filterSearchResults">
8188
<argument name="selector" value="AdminManageSourcesGridFilterControls.code"/>
8289
<argument name="value" value="FullSource1.source_code"/>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminCreateNewWebsiteWithStoreAndStoreViewTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
<testCaseId value="796"/>
1818
<severity value="CRITICAL"/>
1919
<group value="msi"/>
20+
<!-- SKIPPING DUE TO BUG #815 -->
21+
<!-- https://app.zenhub.com/workspace/o/magento-engcom/msi/issues/815 -->
22+
<group value="skip"/>
2023
</annotations>
2124

2225
<before>
26+
<createData entity="_defaultStock" stepKey="createStock1"/>
2327
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2428
</before>
2529
<after>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminCreateSimpleProductWithDefaultSourceTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
<before>
2323
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
24+
<createData entity="FullSource1" stepKey="createSource1"/>
2425

2526
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2627
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminNewWebsiteHasDefaultStockAssignedAutomaticallyTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<testCaseId value="740"/>
1818
<severity value="CRITICAL"/>
1919
<group value="msi"/>
20+
<group value="skip"/>
21+
<!-- SKIPPING DUE TO BUG #815 -->
22+
<!-- https://app.zenhub.com/workspace/o/magento-engcom/msi/issues/815 -->
2023
</annotations>
2124

2225
<before>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminSourceForEachQuantityCanBeSetByAdminTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
3030
</before>
3131
<after>
32+
<actionGroup ref="logout" stepKey="logoutOfAdmin"/>
3233
<deleteData createDataKey="simpleCategory" stepKey="deleteCategory"/>
3334
<deleteData createDataKey="simpleProduct1" stepKey="deleteProduct1"/>
34-
<actionGroup ref="logout" stepKey="logoutOfAdmin"/>
3535
</after>
3636

3737
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/>

app/code/Magento/Inventory/Test/Acceptance/Test/AdminStockCannotBeDeletedWhenSalesChannelIsAssignedTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<testCaseId value="798"/>
1818
<severity value="CRITICAL"/>
1919
<group value="msi"/>
20+
<group value="skip"/>
21+
<!-- SKIPPING DUE TO BUG #815 -->
22+
<!-- https://app.zenhub.com/workspace/o/magento-engcom/msi/issues/815 -->
2023
</annotations>
2124

2225
<before>

0 commit comments

Comments
 (0)