-
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.
- Loading branch information
1 parent
4c9f03b
commit bd5d084
Showing
4 changed files
with
40 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
17 changes: 17 additions & 0 deletions
17
test/functional/fixtures/regression/gh-8264/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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
</head> | ||
<body> | ||
<a href="#" id="link">Click me to remove</a> | ||
<button id="btn">Button</button> | ||
|
||
<script> | ||
document.getElementById('link').addEventListener('click', function(event) { | ||
event.preventDefault(); | ||
this.remove(); | ||
}); | ||
</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,5 @@ | ||
describe('[Regression](GH-8264)', function () { | ||
it('Test should not fails with Uncaught object error on leaveElement when the prevElement is removed from the DOM', function () { | ||
return runTests('testcafe-fixtures/index.js', 'Callsite Issue', { only: 'chrome' }); | ||
}); | ||
}); |
9 changes: 9 additions & 0 deletions
9
test/functional/fixtures/regression/gh-8264/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,9 @@ | ||
|
||
fixture('GH-8264 - Callsite Issue') | ||
.page`http://localhost:3000/fixtures/regression/gh-8264/pages/index.html`; | ||
|
||
test('Callsite Issue', async t => { | ||
await t | ||
.click('#link') | ||
.click('#btn'); | ||
}); |