-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fire appropriate event when cy.type(). (#8255)
- Loading branch information
Showing
5 changed files
with
82 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Simplified version of https://signin.simple.com--> | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Sign In | Simple</title> | ||
</head> | ||
<body> | ||
<form id="login"> | ||
<label for="login_username">Username</label> | ||
<input type="text" name="username" id="login_username" autofocus="autofocus" tabindex="1" autocapitalize="off" autocorrect="off" autocomplete="off" class="validate-text validate-username validate-email-username" /> | ||
|
||
<label for="login_password">Password</label> | ||
<input type="password" name="password" id="login_password" tabindex="2" autocomplete="off" class="validate-text" /> | ||
|
||
<input type="submit" id="signin-btn" class="btn -primary" value="Sign In" tabindex="4" disabled> | ||
</form> | ||
<script src="issue-6125.js" type="text/javascript"></script> | ||
</body> | ||
</html> |
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,12 @@ | ||
// Extracted the code that causes the problem in signin.simple.com | ||
// The cause was overriding the Event class. | ||
|
||
(function() { | ||
this.Event = function(n, i) { | ||
const r = n.type | ||
|
||
if (r.indexOf("key")) { | ||
// do something | ||
} | ||
} | ||
})() |
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
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
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