forked from microsoft/playwright
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(iframes): Add cross-origin clicks (microsoft#3170)
This changeset adds two tests aimed at reproducing microsoft#3170 where a link in a cross-domain iframe fails to get clicked even though the element is found. In addition to the cross-domain test, we add a `srcdoc` test to baseline the source of failing behavior. In the matrix of {Firefox, Chromium, Webkit } X { srcdoc, cross-domain } X { Headfull, Headless }, only the Chromium Headfull test with cross-domain iframe fails. Notably, it fails while logging the same message as reported in the original issue: ``` pw:api retrying click action [] +0ms pw:api waiting for element to be visible, enabled and not moving [] +0ms pw:api element is visible, enabled and does not move [] +25ms pw:api scrolling into view if needed [] +0ms pw:api done scrolling [] +1ms pw:api checking that element receives pointer events at (35.32,17) [] +1ms pw:api element does not receive pointer events [] … ```
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with Link</title> | ||
<style> | ||
body { | ||
background-color: red; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<a id="link-target" href="javascript:window.alert(47)">click me</a> | ||
</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