@zohodesk/testinglibrary 0.0.3 → 0.0.4

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/changelog.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  ## Framework that abstracts the configuration for playwright and Jest
4
4
 
5
- # 0.0.2
5
+ # 0.0.4
6
+
7
+ - Issue Fixes while loading the storage state
8
+
9
+ # 0.0.3
6
10
 
7
11
  - Added Support for custom config generator based on user preferences
8
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@ let projects = browsers.map(browser => {
15
15
  name: 'chromium',
16
16
  use: {
17
17
  ...devices['Desktop Chrome'],
18
- storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : null
18
+ storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : {}
19
19
  },
20
20
  dependencies: isAuthMode ? ['setup'] : [],
21
21
  };
@@ -28,7 +28,7 @@ let projects = browsers.map(browser => {
28
28
  },
29
29
  use: {
30
30
  ...devices['Desktop Firefox'],
31
- storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : null
31
+ storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : {}
32
32
  },
33
33
  dependencies: isAuthMode ? ['setup'] : [],
34
34
  };
@@ -41,15 +41,13 @@ let projects = browsers.map(browser => {
41
41
  },
42
42
  use: {
43
43
  ...devices['Desktop Safari'],
44
- storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : null
44
+ storageState: isAuthMode ? path.resolve(process.cwd(), 'playwright/.auth/user.json') : {}
45
45
  },
46
46
  dependencies: isAuthMode ? ['setup'] : null,
47
47
  }
48
48
  }
49
49
  }).filter(Boolean);
50
50
 
51
- console.log(projects);
52
-
53
51
  module.exports = defineConfig({
54
52
  testDir: path.join(path.resolve(process.cwd()), 'uat'),
55
53
  outputDir: path.join(process.cwd(), 'test-results'),