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.
@@ -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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.3.6",
3
+ "version": "3.3.7-beta.1",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",