Skip to content

Commit d128b95

Browse files
committed
MC-4544: Convert PasswordAutocompleteOffTest to MFTF
Rectified StoreFront to Storefront - all files
1 parent 1da2d3f commit d128b95

5 files changed

+35
-5
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AssertStoreFrontPasswordAutocompleteOffActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AssertStoreFrontPasswordAutoCompleteOffActionGroup">
10+
<actionGroup name="AssertStorefrontPasswordAutoCompleteOffActionGroup">
1111
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
1212
<assertElementContainsAttribute selector="{{StorefrontCustomerSignInFormSection.passwordField}}" attribute="autocomplete" expectedValue="off" stepKey="assertSignInPasswordAutocompleteOff"/>
1313
</actionGroup>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AssertStorefrontPasswordAutoCompleteOffActionGroup">
11+
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
12+
<assertElementContainsAttribute selector="{{StorefrontCustomerSignInFormSection.passwordField}}" attribute="autocomplete" expectedValue="off" stepKey="assertSignInPasswordAutocompleteOff"/>
13+
</actionGroup>
14+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/ActionGroup/StoreFrontClickSignInButtonActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="StoreFrontClickSignInButtonActionGroup">
12-
<waitForPageLoad stepKey="waitForStoreFrontSignInPageLoad"/>
11+
<actionGroup name="StorefrontClickSignInButtonActionGroup">
1312
<click stepKey="signIn" selector="{{StorefrontPanelHeaderSection.customerLoginLink}}" />
13+
<waitForPageLoad stepKey="waitForStorefrontSignInPageLoad"/>
1414
</actionGroup>
1515
</actionGroups>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontClickSignInButtonActionGroup">
12+
<click stepKey="signIn" selector="{{StorefrontPanelHeaderSection.customerLoginLink}}" />
13+
<waitForPageLoad stepKey="waitForStorefrontSignInPageLoad"/>
14+
</actionGroup>
15+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/PasswordAutocompleteOffTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<severity value="CRITICAL"/>
1818
<group value="customers"/>
1919
<group value="mtf_migrated"/>
20+
<group value="banana"/>
2021
</annotations>
2122
<before>
2223
<!-- Configure Magento via CLI: disable_guest_checkout -->
@@ -47,10 +48,10 @@
4748
</actionGroup>
4849

4950
<!--Click Sign in - on the top right of the page -->
50-
<actionGroup ref="StoreFrontClickSignInButtonActionGroup" stepKey="storeFrontClickSignInButton"/>
51+
<actionGroup ref="StorefrontClickSignInButtonActionGroup" stepKey="storeFrontClickSignInButton"/>
5152

5253
<!--Verify if the password field on store front sign-in page has the autocomplete attribute set to off -->
53-
<actionGroup ref="AssertStoreFrontPasswordAutoCompleteOffActionGroup" stepKey="assertStoreFrontPasswordAutoCompleteOff"/>
54+
<actionGroup ref="AssertStorefrontPasswordAutoCompleteOffActionGroup" stepKey="assertStorefrontPasswordAutoCompleteOff"/>
5455

5556
<!--Proceed to checkout-->
5657
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>

0 commit comments

Comments
 (0)