Skip to content

Commit 51f7724

Browse files
committed
Merge branch 'issue-36207' of github.com:rogerdz/magento2 into 2.4-develop-prs
2 parents 3a06344 + 3708d28 commit 51f7724

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontLoginFormCheckDuplicateValidateMessageTest">
12+
<annotations>
13+
<features value="Customer"/>
14+
<stories value="Customer Login"/>
15+
<title value="Check duplicate Validate Message on Customer Login Form"/>
16+
<description value="Check duplicate Validate Message on Customer Login Form"/>
17+
<severity value="MAJOR"/>
18+
<group value="Customer"/>
19+
</annotations>
20+
21+
<actionGroup ref="StorefrontOpenCustomerLoginPageActionGroup" stepKey="goToSignInPage"/>
22+
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButton" />
23+
<fillField userInput="test@example.com" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillValidEmailTest"/>
24+
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButtonTwo" />
25+
<fillField userInput="" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillEmailEmpty"/>
26+
<!-- Double click submit -->
27+
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButtonThree" />
28+
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButtonFour" />
29+
<seeNumberOfElements userInput="1" selector="{{StorefrontCustomerSignInFormSection.emailField}} ~ .mage-error" stepKey="see1ValidateMessageForEmail"/>
30+
</test>
31+
</tests>

lib/web/jquery/jquery.validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@
10401040
// 'aria-describedby' should directly reference the error element
10411041
if ( describer ) {
10421042
selector = selector + ", #" + this.escapeCssMeta( describer )
1043-
.replace( /\s+/g, ", #" );
1043+
.replace( /\s+/g, ", #" ) + ":visible";
10441044
}
10451045

10461046
return this

0 commit comments

Comments
 (0)