codeceptjs 3.3.6 → 3.3.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/helper/Playwright.js +2 -0
- package/package.json +1 -1
package/lib/helper/Playwright.js
CHANGED
|
@@ -477,6 +477,8 @@ class Playwright extends Helper {
|
|
|
477
477
|
|
|
478
478
|
// close other sessions
|
|
479
479
|
try {
|
|
480
|
+
if (!this.browser.contexts) return this.browser;
|
|
481
|
+
|
|
480
482
|
const contexts = await this.browser.contexts();
|
|
481
483
|
const currentContext = contexts[0];
|
|
482
484
|
if (currentContext && (this.options.keepCookies || this.options.keepBrowserState)) {
|