Skip to content

Commit bdca2a6

Browse files
perf: perform isolation while preparing session
1 parent 6568dff commit bdca2a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/browser/existing-browser.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export class ExistingBrowser extends Browser {
8282
this._startCollectingCustomCommands();
8383
}
8484

85+
const isolationPromise = this._performIsolation({ sessionCaps, sessionOpts });
86+
8587
this._extendStacktrace();
8688
this._addSteps();
8789
this._addHistory();
@@ -95,7 +97,10 @@ export class ExistingBrowser extends Browser {
9597
"testplane: init browser",
9698
async () => {
9799
this._addCommands();
98-
await this._performIsolation({ sessionCaps, sessionOpts });
100+
101+
await isolationPromise;
102+
103+
this._callstackHistory?.clear();
99104

100105
try {
101106
this.config.prepareBrowser && this.config.prepareBrowser(this.publicAPI);

0 commit comments

Comments
 (0)