-
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.
added tests surrounding kendo edge case with endless loop finding fix…
…ed content
- Loading branch information
1 parent
f233209
commit 9288641
Showing
7 changed files
with
82 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
describe "Clicks Integration Tests", -> | ||
enterCommandTestingMode("html/clicks") | ||
context "html/fixed-nav", -> | ||
enterCommandTestingMode("html/fixed-nav") | ||
|
||
context "clicking edge cases", -> | ||
it "can click inputs under a fixed-position nav", -> | ||
@cy.get("button").click() | ||
describe "fixed nav", -> | ||
it "can click inputs under a fixed-position nav", -> | ||
@cy.get("button").click() | ||
|
||
context "html/dropdown", -> | ||
enterCommandTestingMode("html/dropdown", {replaceIframeContents: false}) | ||
|
||
describe "animating dropdown with fixed background", -> | ||
## this tests a kendo drop down opening | ||
## as it opens the element from position returns the background element | ||
## which is fixed position | ||
## the fixed position element cannot be scrolled and thus an endless loop | ||
## is created | ||
it "can click an animating element when the element behind it is fixed position and cannot be scrolled", -> | ||
@cy.window().then (win) -> | ||
k = win.$("#dropdown").getKendoDropDownList() | ||
k.open() | ||
|
||
@cy | ||
.contains(".k-item", "Strawberries").click() | ||
.window().then (win) -> | ||
k = win.$("#dropdown").getKendoDropDownList() | ||
expect(k.text()).to.eq "Strawberries" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>DOM Fixture</title> | ||
<script type="text/javascript" src="/lib/public/js/sinon.js"></script> | ||
<script type="text/javascript" src="/bower_components/jquery/dist/jquery.js"></script> | ||
</head> | ||
<body> | ||
<div id="background"> | ||
<link rel="stylesheet" href="/bower_components/kendo-ui/styles/kendo.common.min.css"> | ||
<link rel="stylesheet" href="/bower_components/kendo-ui/styles/kendo.default.min.css"> | ||
|
||
<style> | ||
#background { | ||
position: fixed; | ||
background-color: gray; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
|
||
<input id="dropdown" /> | ||
|
||
<script type="text/javascript" src="/bower_components/kendo-ui/js/kendo.ui.core.min.js"></script> | ||
<script type="text/javascript"> | ||
$(function(){ | ||
$("#dropdown").kendoDropDownList({ | ||
optionLabel: "--Select--", | ||
dataTextField: "t", | ||
dataValueField: "v", | ||
dataSource: [ | ||
{v: 1, t: "Apples"}, | ||
{v: 2, t: "Bananas"}, | ||
{v: 3, t: "Pears"}, | ||
{v: 4, t: "Watermelon"}, | ||
{v: 5, t: "Grapes"}, | ||
{v: 6, t: "Strawberries"} | ||
] | ||
}) | ||
}) | ||
</script> | ||
</div> | ||
</body> | ||
</html> |
File renamed without changes.