Commit fb8a55f
committed
feat: add t.openIsolatedSession() for multi-user e2e tests via CDP
Add the ability to open fully isolated browser sessions within a single
test. Each session gets its own Chrome browser context (separate cookies,
localStorage, sessionStorage, service workers) via CDP's
Target.createBrowserContext().
Includes 40 functional tests, selector chaining support, t2.run() for
transparent Selector/ClientFunction evaluation, and automatic cleanup.
Requires Native Automation mode (Chrome only).1 parent cd8b2c6 commit fb8a55f
File tree
25 files changed
+3262
-1
lines changed- gulp/constants
- src
- api/test-controller
- browser/provider/built-in/dedicated/chrome
- cdp-client
- client-functions/selectors
- native-automation
- test-run
- commands
- test/functional/fixtures/isolated-sessions
- pages
- testcafe-fixtures
25 files changed
+3262
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
650 | 667 | | |
651 | 668 | | |
652 | 669 | | |
| |||
0 commit comments