@zohodesk/testinglibrary 0.4.92-n18-experimental → 0.4.93-n18-experimental

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.
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.cleanupConfig = cleanupConfig;
8
- exports.defaultConfig = defaultConfig;
9
8
  exports.setupConfig = setupConfig;
10
9
  exports.smokeTestConfig = smokeTestConfig;
11
10
  var _path = _interopRequireDefault(require("path"));
@@ -12,6 +12,7 @@ var _configUtils = require("./config-utils");
12
12
  var _ProjectConfiguration = require("./ProjectConfiguration");
13
13
  const uatConfig = (0, _readConfigFile.generateConfigFromFile)();
14
14
  const {
15
+ bddMode,
15
16
  browsers,
16
17
  isSmokeTest,
17
18
  isTearDown,
@@ -60,12 +61,18 @@ const use = {
60
61
  viewport,
61
62
  testIdAttribute
62
63
  };
64
+ const testDir = (0, _configUtils.getTestDir)(bddMode, {
65
+ featureFilesFolder: (0, _configUtils.getPathsForFeatureFiles)(process.cwd()),
66
+ stepDefinitionsFolder: _path.default.join(process.cwd(), 'uat', '**', 'steps', '*.spec.js'),
67
+ outputDir: _path.default.join(process.cwd(), 'uat', '.features-gen'),
68
+ uatPath: _path.default.join(process.cwd(), 'uat')
69
+ });
63
70
  function getPlaywrightConfig() {
64
71
  const smokeTestProject = isSmokeTest ? (0, _ProjectConfiguration.smokeTestConfig)() : [];
65
72
  const setupProject = isAuthMode ? (0, _ProjectConfiguration.setupConfig)() : [];
66
73
  const cleanupProject = isTearDown ? (0, _ProjectConfiguration.cleanupConfig)() : [];
67
- const defaultProject = (0, _ProjectConfiguration.defaultConfig)();
68
74
  const playwrightConfig = {
75
+ testDir,
69
76
  globalTimeout: globalTimeout || 3600000,
70
77
  outputDir: _path.default.join(process.cwd(), 'uat', 'test-results'),
71
78
  fullyParallel: true,
@@ -75,7 +82,7 @@ function getPlaywrightConfig() {
75
82
  timeout: expectTimeout
76
83
  },
77
84
  use,
78
- projects: [...setupProject, ...smokeTestProject, ...defaultProject, ...cleanupProject, ...projects],
85
+ projects: [...setupProject, ...smokeTestProject, ...projects, ...cleanupProject],
79
86
  ...uatConfig
80
87
  };
81
88
  return playwrightConfig;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.92-n18-experimental",
3
+ "version": "0.4.93-n18-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.4.92-n18-experimental",
9
+ "version": "0.4.93-n18-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.92-n18-experimental",
3
+ "version": "0.4.93-n18-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {