-
Notifications
You must be signed in to change notification settings - Fork 675
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
7048138
commit 5e0c96a
Showing
5 changed files
with
51 additions
and
4 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
23 changes: 23 additions & 0 deletions
23
test/functional/fixtures/regression/gh-7483/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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<style> | ||
button { | ||
position: fixed; | ||
bottom: 10px; | ||
left: 0; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<button>click me</button> | ||
<div id="logger"></div> | ||
<script> | ||
document.querySelector('button').addEventListener('click', function () { | ||
document.querySelector('#logger').innerHTML = 'OK'; | ||
}); | ||
</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,9 @@ | ||
const { onlyInProxyless } = require('../../../utils/skip-in'); | ||
|
||
describe('[Regression](GH-7483)', function () { | ||
onlyInProxyless('Should click on the element if the element is behind the Status Bar', function () { | ||
return runTests('testcafe-fixtures/index.js'); | ||
}); | ||
}); | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
test/functional/fixtures/regression/gh-7483/testcafe-fixtures/index.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,10 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture `Should click on the element if the element is behind the Status Bar` | ||
.page('../pages/index.html'); | ||
|
||
test('Click the button behind the StatusBar', async t => { | ||
await t.click('button'); | ||
|
||
await t.expect(Selector('#logger').innerText).eql('OK'); | ||
}); |