-
Notifications
You must be signed in to change notification settings - Fork 659
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
0a619fa
commit 36337d3
Showing
8 changed files
with
97 additions
and
18 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
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
10 changes: 10 additions & 0 deletions
10
test/functional/fixtures/run-options/allow-multiple-windows/pages/i4855/child.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,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>i4855 - Child page</title> | ||
</head> | ||
<body> | ||
<a href="http://localhost:3001/i4855">Open a self-closed page</a> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
test/functional/fixtures/run-options/allow-multiple-windows/pages/i4855/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,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>i4855 - Index page</title> | ||
</head> | ||
<body> | ||
<!-- | ||
// NOTE: The problem is reproduced only for the following unstable scenario: | ||
// - 'ExecuteSelectorCommand' is queried on the child page. | ||
// - the child page is closed. At that moment, the result of the 'ExecuteSelectorCommand' was not sent to the server. | ||
// - the parent page became a 'master' page and starts processing commands. | ||
// - the initial command processing request on the new 'master' is interpreted as the 'ExecuteSelectorCommand'. | ||
// This causes the crash down in the 'replicator' module. | ||
// To create a stable reproducible example I am forced to guarantee that the result of the 'ExecuteSelectorCommand' isn't sent to the server. | ||
--> | ||
<a target="_blank" href="child.html">Open a new window</a><br/> | ||
<span>Checked text</span> | ||
</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
11 changes: 11 additions & 0 deletions
11
test/functional/fixtures/run-options/allow-multiple-windows/testcafe-fixtures/i4855.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,11 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture `Should not finalize the 'ExecuteSelectorCommand' command on driver starting (GH-4855)` | ||
.page('http://localhost:3000/fixtures/run-options/allow-multiple-windows/pages/i4855/index.html'); | ||
|
||
test('test', async t => { | ||
await t | ||
.click('a') | ||
.click('a') | ||
.expect(Selector('span').textContent).eql('Checked text'); | ||
}); |
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