@zohodesk/testinglibrary 0.1.8-exp.10 → 0.1.8-exp.11

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.
@@ -9,7 +9,7 @@ const {
9
9
  testSetup
10
10
  } = (0, _readConfigFile.generateConfigFromFile)();
11
11
  async function performDefaultContextSteps(context) {
12
- if (testSetup.context) {
12
+ if (testSetup.context && typeof testSetup.context === 'function') {
13
13
  await testSetup.context(context);
14
14
  }
15
15
  }
@@ -33,7 +33,7 @@ const {
33
33
  testSetup
34
34
  } = (0, _readConfigFile.generateConfigFromFile)();
35
35
  async function performDefaultPageSteps(page) {
36
- if (testSetup.page) {
36
+ if (testSetup.page && typeof testSetup.page === 'function') {
37
37
  await testSetup.page(page);
38
38
  } else {
39
39
  await page.goto(process.env.domain);
package/build/index.d.ts CHANGED
@@ -62,8 +62,10 @@ type StepFunction<T extends KeyValue, W extends KeyValue> = (
62
62
 
63
63
  const { Given, Then, When, Step, And, But } = createBdd();
64
64
 
65
+ type UserConfig = import('./core/playwright/readConfigFile').UserConfig;
65
66
 
66
67
  export {
68
+ UserConfig,
67
69
  Given, Then, When, Step, And, But, expect, test,
68
70
  createBdd, Page, accountLogin,
69
71
  getListOfUsers,
package/changelog.md CHANGED
@@ -2,13 +2,14 @@
2
2
 
3
3
  ## Framework that abstracts the configuration for playwright and Jest
4
4
 
5
- # 0.1.8-exp.1
5
+ # 0.1.8-exp.10
6
6
  **Enhancements**
7
7
  - Added option to specify browsers in command line.
8
8
  - npm run uat -- --browsers='chrome,firefox'
9
9
  - Playwright version updated to 1.41.1
10
10
  - Added option to Skip Browser download
11
-
11
+ **Breaking Change**
12
+ - Default fixtures moved inside the library.(Page, Context, i18N, unauthenticatedPage)
12
13
  # 0.1.8
13
14
  **Issue Fixes**
14
15
  - Fix #9 Custom report generate Error on Windows
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.1.8-exp.10",
3
+ "version": "0.1.8-exp.11",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.1.8-exp.10",
3
+ "version": "0.1.8-exp.11",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {