-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add option changing scrolling behavior (#30) * feat: allow changing scrolling behavior for realClick and realHover * feat: Fallback to Cypress.config('scrollBehavior') * feat: Add specs for scrollBehavior to click and hover * fix: ignore TS errors or Cypress <6.1.0 * fix: remove false option for scrollBehavior * fix: bump dev dependency for cypress to 6.1 for compilation error * [] Move scrollBehavior specs directly into click.spec and hover.spec * [] Fix failing swipe tests by passing scrollBehavior * Reduce renames * Remove unused option Co-authored-by: Dmitriy Kovalenko <[email protected]> * Add support for radius options in realTouch (#31) * test: add test for radius options in realTouch (#32) * fix(realTouch): accept 0 for position x/y values (#33) * feat: Transpile files to cjs (#34) * fix: calculate positions for elements inside iframes correctly (#29) * fix: calculate positions for elements inside iframes correctly * Handle iframes with scale transforms * [] Refactor getCypressElementCoordinates to better handle scaled frames * [] Add tests for click and hover in iframes * [] Add HTML files to fixtures folder * Remove unnecessary @ts-expect-error * Change logic of get cypress element * Make swipe tests retryable Co-authored-by: Dmitriy Kovalenko <[email protected]> * Fix touch radius test Co-authored-by: Kevin Fleischman <[email protected]> Co-authored-by: Mateusz Burzyński <[email protected]> Co-authored-by: Izhaki <[email protected]> Co-authored-by: Kevin Fleischman <[email protected]>
- Loading branch information
1 parent
857dae6
commit db00220
Showing
15 changed files
with
539 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<html> | ||
<body> | ||
<main style="background-color: yellow; height: 100%; padding: 50px;"> | ||
<iframe style="width: 100%; height: 100%; " src="./frame-two.html"></iframe> | ||
</main> | ||
</body> | ||
|
||
<style> | ||
* { box-sizing: border-box; } | ||
html, body { height: 100%; } | ||
body { margin: 0; } | ||
</style> | ||
</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,22 @@ | ||
<!doctype html> | ||
<html> | ||
<body> | ||
<main style="background-color: blue; height: 100%; padding: 50px;"> | ||
<div id="target"></div> | ||
</main> | ||
</body> | ||
|
||
<script type="text/javascript"> | ||
document.getElementById('target').onclick = function(e) { e.target.textContent = "clicked" }; | ||
</script> | ||
|
||
<style> | ||
#target { width: 100px; height: 100px; background: green; } | ||
#target:hover { background: pink; } | ||
|
||
* { box-sizing: border-box; } | ||
html, body { height: 100%; } | ||
body { margin: 0; } | ||
</style> | ||
</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,14 @@ | ||
<!doctype html> | ||
<html> | ||
<body> | ||
<main style="background-color: red; height: 100%; padding: 50px;"> | ||
<iframe style="width: 100%; height: 100%; " src="./frame-one.html"></iframe> | ||
</main> | ||
</body> | ||
|
||
<style> | ||
* { box-sizing: border-box; } | ||
html, body { height: 100%; } | ||
body { margin: 0; } | ||
</style> | ||
</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
Oops, something went wrong.