-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
77ad9f7
commit 1cb440a
Showing
4 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
left: 0px; | ||
top: 0px; | ||
margin: 0 !important; | ||
overflow: visible; | ||
overflow: hidden; | ||
|
||
.layout-default(); | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
test/functional/fixtures/regression/gh-1138/pages/index.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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>GH-1138</title> | ||
<style> | ||
#target { | ||
padding: 0px 0px 0px 0px; | ||
bottom: 0px; | ||
height: 20px; | ||
right: 0px; | ||
width: 80px; | ||
position: absolute; | ||
} | ||
</style> | ||
</head> | ||
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0"> | ||
<div id="target" onclick="this.textContent = 'It works'" tabIndex="1">Click Me</div> | ||
</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,5 @@ | ||
describe('[Regression](GH-1138)', function () { | ||
it('Test should click on target that has moved during the action', function () { | ||
return runTests('testcafe-fixtures/index.test.js', 'Click on element bound to the right bottom corner'); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
test/functional/fixtures/regression/gh-1138/testcafe-fixtures/index.test.js
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 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture `GH-1138` | ||
.page('http://localhost:3000/fixtures/regression/gh-1138/pages/index.html'); | ||
|
||
test('Click on element bound to the right bottom corner', async t => { | ||
var target = Selector('#target'); | ||
|
||
await t | ||
.click(target) | ||
.expect(target.textContent).eql('It works'); | ||
}); |