-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert VerifyDisabledCustomerGroupFieldTest to MFTF #664
- Loading branch information
1 parent
c427332
commit 648df72
Showing
2 changed files
with
40 additions
and
0 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
39 changes: 39 additions & 0 deletions
39
app/code/Magento/Customer/Test/Mftf/Section/VerifyDisabledCustomerGroupFieldTest.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,39 @@ | ||
<?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="VerifyDisabledCustomerGroupFieldTest"> | ||
<annotations> | ||
<stories value="Check that field is disabled in system Customer Group"/> | ||
<title value="Check that field is disabled in system Customer Group"/> | ||
<description value="Checks that customer_group_code field is disabled in NOT LOGGED IN Customer Group"/> | ||
<testCaseId value="MAGETWO-52481"/> | ||
<severity value="CRITICAL"/> | ||
<group value="customers"/> | ||
<group value="mtf_migrated"/> | ||
</annotations> | ||
|
||
<!-- Steps --> | ||
<!-- 1. Login to backend as admin user --> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<waitForPageLoad stepKey="waitForAdminPageLoad" /> | ||
|
||
<!-- 2. Navigate to Customers > Customer Groups --> | ||
<amOnPage url="{{AdminCustomerGroupPage.url}}" stepKey="amOnCustomerGroupPage" /> | ||
<waitForPageLoad stepKey="waitForCustomerGroupsPageLoad" /> | ||
|
||
<!-- 3. Select system Customer Group specified in data set from grid --> | ||
<click selector="{{AdminCustomerGroupMainSection.selectIdZeroRow}}" stepKey="clickOnEditCustomerGroup" /> | ||
|
||
<!-- 4. Perform all assertions --> | ||
<seeInField selector="#customer_group_code" userInput="NOT LOGGED IN" stepKey="seeNotLoggedInTextInGroupName" /> | ||
<assertElementContainsAttribute selector="#customer_group_code" attribute="disabled" expectedValue="true" stepKey="checkIfGroupNameIsDisabled" /> | ||
|
||
</test> | ||
</tests> |