@zohodesk/testinglibrary 0.5.11-n18-experimental → 0.5.12-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.
package/.gitlab-ci.yml CHANGED
@@ -55,7 +55,7 @@ uat-auth:
55
55
  artifacts:
56
56
  when: always
57
57
  paths:
58
- - examples/uat/playwright-report
58
+ - examples/test-slices/uat/playwright-report
59
59
 
60
60
  uat-noauth:
61
61
  stage: uat
@@ -69,7 +69,7 @@ uat-noauth:
69
69
  artifacts:
70
70
  when: always
71
71
  paths:
72
- - examples/uat/playwright-report
72
+ - examples/test-slices/uat/playwright-report
73
73
 
74
74
  uat-profile:
75
75
  stage: uat
@@ -83,7 +83,7 @@ uat-profile:
83
83
  artifacts:
84
84
  when: always
85
85
  paths:
86
- - examples/uat/playwright-report
86
+ - examples/test-slices/uat/playwright-report
87
87
 
88
88
 
89
89
  uat-unauth:
@@ -99,7 +99,7 @@ uat-unauth:
99
99
  artifacts:
100
100
  when: always
101
101
  paths:
102
- - examples/uat/playwright-report
102
+ - examples/test-slices/uat/playwright-report
103
103
 
104
104
  uat-nobdd:
105
105
  stage: uat
@@ -114,7 +114,7 @@ uat-nobdd:
114
114
  artifacts:
115
115
  when: always
116
116
  paths:
117
- - nobdd/uat/playwright-report
117
+ - nobdd/test-slices/uat/playwright-report
118
118
 
119
119
 
120
120
  uatmodule:
@@ -130,7 +130,7 @@ uatmodule:
130
130
  artifacts:
131
131
  when: always
132
132
  paths:
133
- - examples/uat/playwright-report
133
+ - examples/test-slices/uat/playwright-report
134
134
 
135
135
  uatconfigmodule:
136
136
  stage: uat
@@ -144,7 +144,7 @@ uatconfigmodule:
144
144
  artifacts:
145
145
  when: always
146
146
  paths:
147
- - examples/uat/playwright-report
147
+ - examples/test-slices/uat/playwright-report
148
148
 
149
149
  uat-smoketest:
150
150
  stage: uat
@@ -158,7 +158,7 @@ uat-smoketest:
158
158
  artifacts:
159
159
  when: always
160
160
  paths:
161
- - examples/uat/playwright-report
161
+ - examples/test-slices/uat/playwright-report
162
162
 
163
163
  uat-multiactor:
164
164
  stage: uat
@@ -172,7 +172,7 @@ uat-multiactor:
172
172
  artifacts:
173
173
  when: always
174
174
  paths:
175
- - examples/uat/playwright-report
175
+ - examples/test-slices/uat/playwright-report
176
176
 
177
177
  uat-data_generator:
178
178
  stage: uat
@@ -186,7 +186,7 @@ uat-data_generator:
186
186
  artifacts:
187
187
  when: always
188
188
  paths:
189
- - examples/uat/playwright-report
189
+ - examples/test-slices/uat/playwright-report
190
190
 
191
191
  # uat-search_indexing:
192
192
  # stage: uat
@@ -200,7 +200,7 @@ uat-data_generator:
200
200
  # artifacts:
201
201
  # when: always
202
202
  # paths:
203
- # - examples/uat/playwright-report
203
+ # - examples/test-slices/uat/playwright-report
204
204
 
205
205
 
206
206
 
@@ -10,6 +10,9 @@ var _fileUtils = require("../../utils/fileUtils");
10
10
  var _logger = require("../../utils/logger");
11
11
  var _readConfigFile = require("./readConfigFile");
12
12
  var _checkAuthDirectory = require("./helpers/checkAuthDirectory");
13
+ var _configConstants = _interopRequireDefault(require("./constants/configConstants"));
14
+ var _ConfigurationHelper = require("./configuration/ConfigurationHelper");
15
+ const stage = (0, _ConfigurationHelper.getRunStage)();
13
16
  function deleteAuthFiles(authFilePath) {
14
17
  authFilePath = _path.default.resolve(process.cwd(), authFilePath);
15
18
  const authFileFolder = _path.default.dirname(authFilePath);
@@ -21,7 +24,7 @@ function deletePlaywrightReport(reportPath) {
21
24
  (0, _fileUtils.deleteFolder)(reportPath);
22
25
  }
23
26
  function deleteGeneratedFeatures() {
24
- const featuresGenPath = _path.default.resolve(process.cwd(), 'uat', '.features-gen');
27
+ const featuresGenPath = _path.default.resolve(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, '.features-gen');
25
28
  _logger.Logger.log(_logger.Logger.INFO_TYPE, `Deleting generated features at ${featuresGenPath}`);
26
29
  (0, _fileUtils.deleteFolder)(featuresGenPath);
27
30
  }
@@ -43,7 +46,7 @@ function clearCaches() {
43
46
  _logger.Logger.log(_logger.Logger.SUCCESS_TYPE, 'Caches Cleared. Now you can try running npm run uat');
44
47
  } catch (err) {
45
48
  _logger.Logger.error(err);
46
- _logger.Logger.log(_logger.Logger.FAILURE_TYPE, 'Error While clearing cookies. Try manually delete folder uat/playwright and uat/playwright-report');
49
+ _logger.Logger.log(_logger.Logger.FAILURE_TYPE, `Error While clearing cookies. Try manually delete folder ${_configConstants.default.TEST_SLICE_FOLDER}/playwright and ${_configConstants.default.TEST_SLICE_FOLDER}/playwright-report`);
47
50
  }
48
51
  }
49
52
  var _default = exports.default = clearCaches;
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
3
  class configConstants {
8
4
  static DEFAULT_CONFIG_DIR = 'default';
9
5
  static BETA_DIR = 'beta';
@@ -12,6 +8,7 @@ class configConstants {
12
8
  static INDEX_FILE = 'index.js';
13
9
  static SETTINGS_FILE = 'settings.json';
14
10
  static TEST_SUMMARY_FILE = 'test-summary.json';
15
- static STAGE_CONFIG_MAP_FILE = 'uat/conf_path_map.properties';
11
+ static STAGE_CONFIG_MAP_FILE = 'test-slices/conf_path_map.properties';
12
+ static TEST_SLICE_FOLDER = 'test-slices';
16
13
  }
17
- exports.default = configConstants;
14
+ module.exports = configConstants;
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _configConstants = _interopRequireDefault(require("./configConstants"));
9
+ var _ConfigurationHelper = require("../configuration/ConfigurationHelper");
10
+ const stage = (0, _ConfigurationHelper.getRunStage)();
7
11
  class ReporterConstants {
8
- static DEFAULT_REPORTER_PATH = 'uat/test-results/playwright-test-results.json';
9
- static LAST_RUN_REPORTER_PATH = 'uat/test-results/.last-run.json';
12
+ static DEFAULT_REPORTER_PATH = `${_configConstants.default.TEST_SLICE_FOLDER}/${stage}/test-results/playwright-test-results.json`;
13
+ static LAST_RUN_REPORTER_PATH = `${_configConstants.default.TEST_SLICE_FOLDER}/${stage}/test-results/.last-run.json`;
10
14
  }
11
15
  exports.default = ReporterConstants;
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "getRunMode", {
34
34
  return _getUsers.getRunMode;
35
35
  }
36
36
  });
37
+ Object.defineProperty(exports, "getRunStage", {
38
+ enumerable: true,
39
+ get: function () {
40
+ return _ConfigurationHelper.getRunStage;
41
+ }
42
+ });
37
43
  Object.defineProperty(exports, "getUserForSelectedEditionAndProfile", {
38
44
  enumerable: true,
39
45
  get: function () {
@@ -73,4 +79,5 @@ Object.defineProperty(exports, "verifyIfCookieFileExists", {
73
79
  var _accountLogin = _interopRequireDefault(require("./accountLogin"));
74
80
  var _checkAuthCookies = require("./checkAuthCookies");
75
81
  var _getUsers = require("./getUsers");
76
- var _loginSteps = _interopRequireDefault(require("./loginSteps"));
82
+ var _loginSteps = _interopRequireDefault(require("./loginSteps"));
83
+ var _ConfigurationHelper = require("../../configuration/ConfigurationHelper");
@@ -16,11 +16,13 @@ var _mergeObjects = require("./helpers/mergeObjects");
16
16
  var _Configuration = _interopRequireDefault(require("./configuration/Configuration"));
17
17
  var _UserArgs = _interopRequireDefault(require("./configuration/UserArgs"));
18
18
  var _ConfigurationHelper = require("./configuration/ConfigurationHelper");
19
+ var _configConstants = _interopRequireDefault(require("./constants/configConstants"));
20
+ const stage = (0, _ConfigurationHelper.getRunStage)();
19
21
  let cachedConfig = null;
20
22
  function getDefaultConfig() {
21
23
  return {
22
24
  isTearDown: true,
23
- uatDirectory: _path.default.join(process.cwd(), 'uat'),
25
+ uatDirectory: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage),
24
26
  headless: false,
25
27
  browsers: ['Chrome'],
26
28
  forbidOnly: false,
@@ -29,11 +31,11 @@ function getDefaultConfig() {
29
31
  video: false,
30
32
  isAuthMode: false,
31
33
  openReportOn: 'never',
32
- reportPath: _path.default.join(process.cwd(), 'uat', 'playwright-report'),
34
+ reportPath: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'playwright-report'),
33
35
  bddMode: false,
34
36
  expectTimeout: 5 * 1000,
35
37
  testTimeout: 60 * 1000,
36
- authFilePath: 'uat/playwright/.auth/user.json',
38
+ authFilePath: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json'),
37
39
  viewport: {
38
40
  width: 1280,
39
41
  height: 720
@@ -11,6 +11,9 @@ var _path = _interopRequireDefault(require("path"));
11
11
  var _Project = require("./Project");
12
12
  var _configUtils = require("./config-utils");
13
13
  var _readConfigFile = require("../readConfigFile");
14
+ var _configConstants = _interopRequireDefault(require("../constants/configConstants"));
15
+ var _ConfigurationHelper = require("../configuration/ConfigurationHelper");
16
+ const stage = (0, _ConfigurationHelper.getRunStage)();
14
17
  const uatConfig = (0, _readConfigFile.generateConfigFromFile)();
15
18
  const {
16
19
  isAuthMode,
@@ -25,7 +28,7 @@ const {
25
28
  function setupConfig() {
26
29
  const setupProject = new _Project.Project('setup');
27
30
  setupProject.setTestMatch(/.*\.setup\.js/);
28
- setupProject.setTestDir(_path.default.join(process.cwd(), 'uat'));
31
+ setupProject.setTestDir(_path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER));
29
32
  const isTearDown = JSON.parse(process.env.tearDown);
30
33
  setupProject.setTearDown(isTearDown ? 'cleanup' : '');
31
34
  const setupProjectConfig = [setupProject.getProperties()];
@@ -34,10 +37,10 @@ function setupConfig() {
34
37
  function smokeTestConfig() {
35
38
  const smokeTestProject = new _Project.Project('smokeTest');
36
39
  const smokeTestDir = (0, _configUtils.getTestDir)(bddMode, {
37
- featureFilesFolder: _path.default.join(process.cwd(), 'uat', 'smokeTest', '**', '*.feature'),
38
- stepDefinitionsFolder: _path.default.join(process.cwd(), 'uat', '**', 'steps', '*.spec.js'),
39
- outputDir: _path.default.join(process.cwd(), 'uat', '.features-smoke-gen'),
40
- uatPath: _path.default.join(process.cwd(), 'uat', 'smokeTest')
40
+ featureFilesFolder: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'smokeTest', '**', '*.feature'),
41
+ stepDefinitionsFolder: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, '**', '**', 'steps', '*.spec.js'),
42
+ outputDir: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, '.features-smoke-gen'),
43
+ uatPath: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'smokeTest')
41
44
  });
42
45
  const commonConfig = {
43
46
  storageState: isAuthMode ? (0, _readConfigFile.getAuthFilePath)(_path.default.resolve(process.cwd(), authFilePath)) : {}
@@ -51,30 +54,10 @@ function smokeTestConfig() {
51
54
  const smokeTestProjectConfig = [smokeTestProject.getProperties()];
52
55
  return smokeTestProjectConfig;
53
56
  }
54
- function defaultConfig() {
55
- const defaultProject = new _Project.Project('default');
56
- const testDir = (0, _configUtils.getTestDir)(bddMode, {
57
- featureFilesFolder: (0, _configUtils.getPathsForFeatureFiles)(process.cwd()),
58
- stepDefinitionsFolder: _path.default.join(process.cwd(), 'uat', '**', 'steps', '*.spec.js'),
59
- outputDir: _path.default.join(process.cwd(), 'uat', '.features-gen'),
60
- uatPath: _path.default.join(process.cwd(), 'uat')
61
- });
62
- const use = {
63
- trace,
64
- video,
65
- viewport,
66
- testIdAttribute
67
- };
68
- defaultProject.setUse(use);
69
- defaultProject.setTestDir(testDir);
70
- defaultProject.setDependencies(isSmokeTest ? ['smokeTest'] : []);
71
- const defaultProjectConfig = [defaultProject.getProperties()];
72
- return defaultProjectConfig;
73
- }
74
57
  function cleanupConfig() {
75
58
  const cleanupProject = new _Project.Project('cleanup');
76
59
  cleanupProject.setTestMatch(/.*\.teardown\.js/);
77
- cleanupProject.setTestDir(_path.default.join(process.cwd(), 'uat'));
60
+ cleanupProject.setTestDir(_path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER));
78
61
  const cleanupProjectConfig = [cleanupProject.getProperties()];
79
62
  return cleanupProjectConfig;
80
63
  }
@@ -10,7 +10,10 @@ var _path = _interopRequireDefault(require("path"));
10
10
  var _readConfigFile = require("../readConfigFile");
11
11
  var _configUtils = require("./config-utils");
12
12
  var _ProjectConfiguration = require("./ProjectConfiguration");
13
+ var _ConfigurationHelper = require("../configuration/ConfigurationHelper");
14
+ var _configConstants = _interopRequireDefault(require("../constants/configConstants"));
13
15
  const uatConfig = (0, _readConfigFile.generateConfigFromFile)();
16
+ const stage = (0, _ConfigurationHelper.getRunStage)();
14
17
  const {
15
18
  bddMode,
16
19
  browsers,
@@ -41,7 +44,7 @@ let reporter = [['html', {
41
44
  outputFolder: reportPath,
42
45
  open: openReportOn
43
46
  }], ['list'], ['json', {
44
- outputFile: _path.default.join(process.cwd(), 'uat', 'test-results', 'playwright-test-results.json')
47
+ outputFile: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'test-results', 'playwright-test-results.json')
45
48
  }], ['./custom-reporter.js'], ['./qc-custom-reporter.js']];
46
49
  if (customReporter) {
47
50
  reporter = [customReporter, ...reporter];
@@ -61,9 +64,9 @@ const use = {
61
64
  };
62
65
  const testDir = (0, _configUtils.getTestDir)(bddMode, {
63
66
  featureFilesFolder: (0, _configUtils.getPathsForFeatureFiles)(process.cwd()),
64
- stepDefinitionsFolder: _path.default.join(process.cwd(), 'uat', '**', 'steps', '*.spec.js'),
65
- outputDir: _path.default.join(process.cwd(), 'uat', '.features-gen'),
66
- uatPath: _path.default.join(process.cwd(), 'uat')
67
+ stepDefinitionsFolder: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, '**', '**', 'steps', '*.spec.js'),
68
+ outputDir: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, '.features-gen'),
69
+ uatPath: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage)
67
70
  });
68
71
  function getPlaywrightConfig() {
69
72
  const smokeTestProject = isSmokeTest ? (0, _ProjectConfiguration.smokeTestConfig)() : [];
@@ -73,7 +76,7 @@ function getPlaywrightConfig() {
73
76
  const playwrightConfig = {
74
77
  testDir,
75
78
  globalTimeout: globalTimeout || 3600000,
76
- outputDir: _path.default.join(process.cwd(), 'uat', 'test-results'),
79
+ outputDir: _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'test-results'),
77
80
  fullyParallel: true,
78
81
  reporter,
79
82
  timeout: testTimeout,
@@ -16,11 +16,14 @@ var _playwrightBdd = require("playwright-bdd");
16
16
  var _logger = require("../../../utils/logger");
17
17
  var _browserTypes = require("../constants/browserTypes");
18
18
  var _fileUtils = require("../../../utils/fileUtils");
19
+ var _ConfigurationHelper = require("../configuration/ConfigurationHelper");
20
+ var _configConstants = _interopRequireDefault(require("../constants/configConstants"));
19
21
  /**
20
22
  ** Playwright project configuration
21
23
  * @returns {import('@playwright/test').Project}
22
24
  */
23
25
 
26
+ const stage = (0, _ConfigurationHelper.getRunStage)();
24
27
  function getBrowserConfig({
25
28
  browserName,
26
29
  isAuthMode,
@@ -142,7 +145,8 @@ function getPathsForFeatureFiles(cwd) {
142
145
  const {
143
146
  failed = []
144
147
  } = JSON.parse(testSummary);
145
- const casesToRun = failed.map(filePath => _path.default.join(cwd, 'uat', filePath.replace(/\.spec\.js$|\.js$/, '')));
148
+ const casesToRun = failed.map(filePath => _path.default.join(cwd, _configConstants.default.TEST_SLICE_FOLDER, filePath.replace(/\.spec\.js$|\.js$/, '')));
149
+ ;
146
150
  return casesToRun;
147
151
  } else {
148
152
  _logger.Logger.log(_logger.Logger.INFO_TYPE, `Unable to read test summary from the ${reportPath}. Verify If File Exists in the path`);
@@ -153,12 +157,12 @@ function getPathsForFeatureFiles(cwd) {
153
157
  let moduleList = modules.split(',');
154
158
  return getModulePathForFeatureFiles(moduleList);
155
159
  }
156
- return [_path.default.join(cwd, 'uat', 'modules', '**', '*.feature')];
160
+ return [_path.default.join(cwd, _configConstants.default.TEST_SLICE_FOLDER, stage, 'modules', '**', 'feature-files', '*.feature')];
157
161
  }
158
162
  function getModulePathForFeatureFiles(moduleList) {
159
163
  let validModuleList = [];
160
164
  moduleList.forEach(moduleName => {
161
- let modulePath = _path.default.join(process.cwd(), 'uat', 'modules', '**', `${moduleName}`);
165
+ let modulePath = _path.default.join(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, '**', 'modules', '**', `${moduleName}`);
162
166
  if ((0, _fileUtils.checkIfFolderExistsWithPattern)(modulePath)) {
163
167
  validModuleList.push(_path.default.join(modulePath, '**', '*.feature'));
164
168
  } else {
@@ -8,11 +8,14 @@ exports.default = void 0;
8
8
  var _fs = _interopRequireDefault(require("fs"));
9
9
  var _path = _interopRequireDefault(require("path"));
10
10
  var _codeFrame = require("@babel/code-frame");
11
+ var _configConstants = _interopRequireDefault(require("../constants/configConstants"));
12
+ var _ConfigurationHelper = require("../configuration/ConfigurationHelper");
13
+ const stage = (0, _ConfigurationHelper.getRunStage)();
11
14
  class CustomJsonReporter {
12
15
  constructor({
13
16
  outputFile = 'test-results.json'
14
17
  } = {}) {
15
- this.outputFile = _path.default.resolve(process.cwd(), 'uat/test-results/', outputFile);
18
+ this.outputFile = _path.default.resolve(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'test-results/', outputFile);
16
19
  this.rootSuite = null;
17
20
  this.report = {
18
21
  config: {},
@@ -8,15 +8,11 @@ exports.default = void 0;
8
8
  exports.runPreprocessing = runPreprocessing;
9
9
  var _child_process = require("child_process");
10
10
  var _path = _interopRequireDefault(require("path"));
11
- var _customCommands = require("./custom-commands");
12
- var _cliArgsToObject = require("../../utils/cliArgsToObject");
13
11
  var _envInitializer = require("./env-initializer");
14
12
  var _logger = require("../../utils/logger");
15
13
  var _readConfigFile = require("./readConfigFile");
16
14
  var _rootPath = require("../../utils/rootPath");
17
15
  var _tagProcessor = _interopRequireDefault(require("./tagProcessor"));
18
- var _configUtils = require("./setup/config-utils");
19
- var _browserTypes = require("./constants/browserTypes");
20
16
  var _ConfigurationHelper = require("./configuration/ConfigurationHelper");
21
17
  var _Configuration = _interopRequireDefault(require("./configuration/Configuration"));
22
18
  var _UserArgs = _interopRequireDefault(require("./configuration/UserArgs"));
package/build/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  test,
4
4
  createBdd
5
5
  } from './core/playwright/index';
6
+ import { fireEvent, render } from '@testing-library/react';
6
7
  import {
7
8
  PlaywrightTestArgs,
8
9
  PlaywrightTestOptions,
package/build/index.js CHANGED
@@ -40,6 +40,12 @@ Object.defineProperty(exports, "getRunMode", {
40
40
  return _index.getRunMode;
41
41
  }
42
42
  });
43
+ Object.defineProperty(exports, "getRunStage", {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _index.getRunStage;
47
+ }
48
+ });
43
49
  Object.defineProperty(exports, "getUserForSelectedEditionAndProfile", {
44
50
  enumerable: true,
45
51
  get: function () {
@@ -89,6 +95,8 @@ Object.defineProperty(exports, "verifyIfCookieFileExists", {
89
95
  }
90
96
  });
91
97
  var _index = require("./core/playwright/index");
98
+ // import { fireEvent, render } from '@testing-library/react';
99
+
92
100
  const {
93
101
  Given,
94
102
  Then,
@@ -7,11 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.copyCommonSpecs = copyCommonSpecs;
8
8
  var _fileUtils = require("./fileUtils");
9
9
  var _path = _interopRequireDefault(require("path"));
10
+ var _configConstants = _interopRequireDefault(require("../core/playwright/constants/configConstants"));
11
+ var _ConfigurationHelper = require("../core/playwright/configuration/ConfigurationHelper");
12
+ const stage = (0, _ConfigurationHelper.getRunStage)();
10
13
  function copyCommonSpecs() {
11
14
  const libraryPath = require.resolve("@zohodesk/testinglibrary");
12
15
  // libraryPath will be build/index.js to go to the common specs we need to go one level up
13
16
  const commonSpecPath = _path.default.resolve(libraryPath, '../', 'common');
14
- const destDirectory = _path.default.resolve(process.cwd(), 'uat', 'modules', '.testingLib-common');
17
+ const destDirectory = _path.default.resolve(process.cwd(), _configConstants.default.TEST_SLICE_FOLDER, stage, 'modules', '.testingLib-common');
15
18
  (0, _fileUtils.deleteFolder)(destDirectory);
16
19
  (0, _fileUtils.copyDirectory)(commonSpecPath, destDirectory);
17
20
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.11-n18-experimental",
3
+ "version": "0.5.12-n18-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.5.11-n18-experimental",
9
+ "version": "0.5.12-n18-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
@@ -16,6 +16,8 @@
16
16
  "@playwright/test": "1.53.2",
17
17
  "@reportportal/agent-js-playwright": "5.1.11",
18
18
  "@testing-library/jest-dom": "5.11.9",
19
+ "@testing-library/react": "11.2.7",
20
+ "@testing-library/react-hooks": "7.0.2",
19
21
  "babel-jest": "29.6.2",
20
22
  "babel-plugin-transform-dynamic-import": "2.1.0",
21
23
  "fast-glob": "3.3.1",
@@ -2705,6 +2707,12 @@
2705
2707
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2706
2708
  }
2707
2709
  },
2710
+ "node_modules/@jest/console/node_modules/react-is": {
2711
+ "version": "18.3.1",
2712
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
2713
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
2714
+ "license": "MIT"
2715
+ },
2708
2716
  "node_modules/@jest/console/node_modules/slash": {
2709
2717
  "version": "3.0.0",
2710
2718
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -2807,6 +2815,12 @@
2807
2815
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2808
2816
  }
2809
2817
  },
2818
+ "node_modules/@jest/core/node_modules/react-is": {
2819
+ "version": "18.3.1",
2820
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
2821
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
2822
+ "license": "MIT"
2823
+ },
2810
2824
  "node_modules/@jest/core/node_modules/slash": {
2811
2825
  "version": "3.0.0",
2812
2826
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -2983,6 +2997,12 @@
2983
2997
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
2984
2998
  }
2985
2999
  },
3000
+ "node_modules/@jest/expect/node_modules/react-is": {
3001
+ "version": "18.3.1",
3002
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
3003
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
3004
+ "license": "MIT"
3005
+ },
2986
3006
  "node_modules/@jest/expect/node_modules/slash": {
2987
3007
  "version": "3.0.0",
2988
3008
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -3069,6 +3089,12 @@
3069
3089
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3070
3090
  }
3071
3091
  },
3092
+ "node_modules/@jest/fake-timers/node_modules/react-is": {
3093
+ "version": "18.3.1",
3094
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
3095
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
3096
+ "license": "MIT"
3097
+ },
3072
3098
  "node_modules/@jest/fake-timers/node_modules/slash": {
3073
3099
  "version": "3.0.0",
3074
3100
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -3291,6 +3317,12 @@
3291
3317
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
3292
3318
  }
3293
3319
  },
3320
+ "node_modules/@jest/reporters/node_modules/react-is": {
3321
+ "version": "18.3.1",
3322
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
3323
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
3324
+ "license": "MIT"
3325
+ },
3294
3326
  "node_modules/@jest/reporters/node_modules/slash": {
3295
3327
  "version": "3.0.0",
3296
3328
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -3707,6 +3739,25 @@
3707
3739
  "node": ">=14"
3708
3740
  }
3709
3741
  },
3742
+ "node_modules/@testing-library/dom": {
3743
+ "version": "7.31.2",
3744
+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-7.31.2.tgz",
3745
+ "integrity": "sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==",
3746
+ "license": "MIT",
3747
+ "dependencies": {
3748
+ "@babel/code-frame": "^7.10.4",
3749
+ "@babel/runtime": "^7.12.5",
3750
+ "@types/aria-query": "^4.2.0",
3751
+ "aria-query": "^4.2.2",
3752
+ "chalk": "^4.1.0",
3753
+ "dom-accessibility-api": "^0.5.6",
3754
+ "lz-string": "^1.4.4",
3755
+ "pretty-format": "^26.6.2"
3756
+ },
3757
+ "engines": {
3758
+ "node": ">=10"
3759
+ }
3760
+ },
3710
3761
  "node_modules/@testing-library/jest-dom": {
3711
3762
  "version": "5.11.9",
3712
3763
  "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.11.9.tgz",
@@ -3753,6 +3804,52 @@
3753
3804
  "node": ">=8"
3754
3805
  }
3755
3806
  },
3807
+ "node_modules/@testing-library/react": {
3808
+ "version": "11.2.7",
3809
+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-11.2.7.tgz",
3810
+ "integrity": "sha512-tzRNp7pzd5QmbtXNG/mhdcl7Awfu/Iz1RaVHY75zTdOkmHCuzMhRL83gWHSgOAcjS3CCbyfwUHMZgRJb4kAfpA==",
3811
+ "license": "MIT",
3812
+ "dependencies": {
3813
+ "@babel/runtime": "^7.12.5",
3814
+ "@testing-library/dom": "^7.28.1"
3815
+ },
3816
+ "engines": {
3817
+ "node": ">=10"
3818
+ },
3819
+ "peerDependencies": {
3820
+ "react": "*",
3821
+ "react-dom": "*"
3822
+ }
3823
+ },
3824
+ "node_modules/@testing-library/react-hooks": {
3825
+ "version": "7.0.2",
3826
+ "resolved": "https://registry.npmjs.org/@testing-library/react-hooks/-/react-hooks-7.0.2.tgz",
3827
+ "integrity": "sha512-dYxpz8u9m4q1TuzfcUApqi8iFfR6R0FaMbr2hjZJy1uC8z+bO/K4v8Gs9eogGKYQop7QsrBTFkv/BCF7MzD2Cg==",
3828
+ "license": "MIT",
3829
+ "dependencies": {
3830
+ "@babel/runtime": "^7.12.5",
3831
+ "@types/react": ">=16.9.0",
3832
+ "@types/react-dom": ">=16.9.0",
3833
+ "@types/react-test-renderer": ">=16.9.0",
3834
+ "react-error-boundary": "^3.1.0"
3835
+ },
3836
+ "engines": {
3837
+ "node": ">=12"
3838
+ },
3839
+ "peerDependencies": {
3840
+ "react": ">=16.9.0",
3841
+ "react-dom": ">=16.9.0",
3842
+ "react-test-renderer": ">=16.9.0"
3843
+ },
3844
+ "peerDependenciesMeta": {
3845
+ "react-dom": {
3846
+ "optional": true
3847
+ },
3848
+ "react-test-renderer": {
3849
+ "optional": true
3850
+ }
3851
+ }
3852
+ },
3756
3853
  "node_modules/@tootallnate/once": {
3757
3854
  "version": "2.0.0",
3758
3855
  "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
@@ -3762,6 +3859,12 @@
3762
3859
  "node": ">= 10"
3763
3860
  }
3764
3861
  },
3862
+ "node_modules/@types/aria-query": {
3863
+ "version": "4.2.2",
3864
+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-4.2.2.tgz",
3865
+ "integrity": "sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==",
3866
+ "license": "MIT"
3867
+ },
3765
3868
  "node_modules/@types/babel__core": {
3766
3869
  "version": "7.20.5",
3767
3870
  "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
@@ -3868,6 +3971,56 @@
3868
3971
  "pretty-format": "^30.0.0"
3869
3972
  }
3870
3973
  },
3974
+ "node_modules/@types/jest/node_modules/@jest/schemas": {
3975
+ "version": "30.0.5",
3976
+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz",
3977
+ "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==",
3978
+ "license": "MIT",
3979
+ "dependencies": {
3980
+ "@sinclair/typebox": "^0.34.0"
3981
+ },
3982
+ "engines": {
3983
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
3984
+ }
3985
+ },
3986
+ "node_modules/@types/jest/node_modules/@sinclair/typebox": {
3987
+ "version": "0.34.41",
3988
+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz",
3989
+ "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==",
3990
+ "license": "MIT"
3991
+ },
3992
+ "node_modules/@types/jest/node_modules/ansi-styles": {
3993
+ "version": "5.2.0",
3994
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
3995
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
3996
+ "license": "MIT",
3997
+ "engines": {
3998
+ "node": ">=10"
3999
+ },
4000
+ "funding": {
4001
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
4002
+ }
4003
+ },
4004
+ "node_modules/@types/jest/node_modules/pretty-format": {
4005
+ "version": "30.2.0",
4006
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz",
4007
+ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==",
4008
+ "license": "MIT",
4009
+ "dependencies": {
4010
+ "@jest/schemas": "30.0.5",
4011
+ "ansi-styles": "^5.2.0",
4012
+ "react-is": "^18.3.1"
4013
+ },
4014
+ "engines": {
4015
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
4016
+ }
4017
+ },
4018
+ "node_modules/@types/jest/node_modules/react-is": {
4019
+ "version": "18.3.1",
4020
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
4021
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
4022
+ "license": "MIT"
4023
+ },
3871
4024
  "node_modules/@types/js-levenshtein": {
3872
4025
  "version": "1.1.3",
3873
4026
  "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.3.tgz",
@@ -3913,6 +4066,33 @@
3913
4066
  "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==",
3914
4067
  "license": "MIT"
3915
4068
  },
4069
+ "node_modules/@types/react": {
4070
+ "version": "19.2.7",
4071
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.7.tgz",
4072
+ "integrity": "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==",
4073
+ "license": "MIT",
4074
+ "dependencies": {
4075
+ "csstype": "^3.2.2"
4076
+ }
4077
+ },
4078
+ "node_modules/@types/react-dom": {
4079
+ "version": "19.2.3",
4080
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
4081
+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
4082
+ "license": "MIT",
4083
+ "peerDependencies": {
4084
+ "@types/react": "^19.2.0"
4085
+ }
4086
+ },
4087
+ "node_modules/@types/react-test-renderer": {
4088
+ "version": "19.1.0",
4089
+ "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-19.1.0.tgz",
4090
+ "integrity": "sha512-XD0WZrHqjNrxA/MaR9O22w/RNidWR9YZmBdRGI7wcnWGrv/3dA8wKCJ8m63Sn+tLJhcjmuhOi629N66W6kgWzQ==",
4091
+ "license": "MIT",
4092
+ "dependencies": {
4093
+ "@types/react": "*"
4094
+ }
4095
+ },
3916
4096
  "node_modules/@types/set-cookie-parser": {
3917
4097
  "version": "2.4.10",
3918
4098
  "resolved": "https://registry.npmjs.org/@types/set-cookie-parser/-/set-cookie-parser-2.4.10.tgz",
@@ -5121,6 +5301,12 @@
5121
5301
  "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==",
5122
5302
  "license": "MIT"
5123
5303
  },
5304
+ "node_modules/csstype": {
5305
+ "version": "3.2.3",
5306
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
5307
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
5308
+ "license": "MIT"
5309
+ },
5124
5310
  "node_modules/data-urls": {
5125
5311
  "version": "3.0.2",
5126
5312
  "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz",
@@ -5344,6 +5530,12 @@
5344
5530
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
5345
5531
  }
5346
5532
  },
5533
+ "node_modules/dom-accessibility-api": {
5534
+ "version": "0.5.16",
5535
+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
5536
+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
5537
+ "license": "MIT"
5538
+ },
5347
5539
  "node_modules/domexception": {
5348
5540
  "version": "4.0.0",
5349
5541
  "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz",
@@ -5592,27 +5784,6 @@
5592
5784
  "url": "https://github.com/sponsors/sindresorhus"
5593
5785
  }
5594
5786
  },
5595
- "node_modules/escodegen": {
5596
- "version": "2.1.0",
5597
- "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
5598
- "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
5599
- "license": "BSD-2-Clause",
5600
- "dependencies": {
5601
- "esprima": "^4.0.1",
5602
- "estraverse": "^5.2.0",
5603
- "esutils": "^2.0.2"
5604
- },
5605
- "bin": {
5606
- "escodegen": "bin/escodegen.js",
5607
- "esgenerate": "bin/esgenerate.js"
5608
- },
5609
- "engines": {
5610
- "node": ">=6.0"
5611
- },
5612
- "optionalDependencies": {
5613
- "source-map": "~0.6.1"
5614
- }
5615
- },
5616
5787
  "node_modules/eslint": {
5617
5788
  "version": "9.39.1",
5618
5789
  "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",
@@ -7709,6 +7880,12 @@
7709
7880
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
7710
7881
  }
7711
7882
  },
7883
+ "node_modules/jest-circus/node_modules/react-is": {
7884
+ "version": "18.3.1",
7885
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
7886
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
7887
+ "license": "MIT"
7888
+ },
7712
7889
  "node_modules/jest-circus/node_modules/slash": {
7713
7890
  "version": "3.0.0",
7714
7891
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -7843,6 +8020,12 @@
7843
8020
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
7844
8021
  }
7845
8022
  },
8023
+ "node_modules/jest-config/node_modules/react-is": {
8024
+ "version": "18.3.1",
8025
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8026
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8027
+ "license": "MIT"
8028
+ },
7846
8029
  "node_modules/jest-config/node_modules/slash": {
7847
8030
  "version": "3.0.0",
7848
8031
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -7867,6 +8050,56 @@
7867
8050
  "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
7868
8051
  }
7869
8052
  },
8053
+ "node_modules/jest-diff/node_modules/@jest/schemas": {
8054
+ "version": "30.0.5",
8055
+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz",
8056
+ "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==",
8057
+ "license": "MIT",
8058
+ "dependencies": {
8059
+ "@sinclair/typebox": "^0.34.0"
8060
+ },
8061
+ "engines": {
8062
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8063
+ }
8064
+ },
8065
+ "node_modules/jest-diff/node_modules/@sinclair/typebox": {
8066
+ "version": "0.34.41",
8067
+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz",
8068
+ "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==",
8069
+ "license": "MIT"
8070
+ },
8071
+ "node_modules/jest-diff/node_modules/ansi-styles": {
8072
+ "version": "5.2.0",
8073
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
8074
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
8075
+ "license": "MIT",
8076
+ "engines": {
8077
+ "node": ">=10"
8078
+ },
8079
+ "funding": {
8080
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
8081
+ }
8082
+ },
8083
+ "node_modules/jest-diff/node_modules/pretty-format": {
8084
+ "version": "30.2.0",
8085
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz",
8086
+ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==",
8087
+ "license": "MIT",
8088
+ "dependencies": {
8089
+ "@jest/schemas": "30.0.5",
8090
+ "ansi-styles": "^5.2.0",
8091
+ "react-is": "^18.3.1"
8092
+ },
8093
+ "engines": {
8094
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8095
+ }
8096
+ },
8097
+ "node_modules/jest-diff/node_modules/react-is": {
8098
+ "version": "18.3.1",
8099
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8100
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8101
+ "license": "MIT"
8102
+ },
7870
8103
  "node_modules/jest-docblock": {
7871
8104
  "version": "29.7.0",
7872
8105
  "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz",
@@ -7921,6 +8154,12 @@
7921
8154
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
7922
8155
  }
7923
8156
  },
8157
+ "node_modules/jest-each/node_modules/react-is": {
8158
+ "version": "18.3.1",
8159
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8160
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8161
+ "license": "MIT"
8162
+ },
7924
8163
  "node_modules/jest-environment-jsdom": {
7925
8164
  "version": "29.6.2",
7926
8165
  "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-29.6.2.tgz",
@@ -8111,6 +8350,12 @@
8111
8350
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
8112
8351
  }
8113
8352
  },
8353
+ "node_modules/jest-leak-detector/node_modules/react-is": {
8354
+ "version": "18.3.1",
8355
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8356
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8357
+ "license": "MIT"
8358
+ },
8114
8359
  "node_modules/jest-matcher-utils": {
8115
8360
  "version": "30.2.0",
8116
8361
  "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz",
@@ -8126,6 +8371,56 @@
8126
8371
  "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8127
8372
  }
8128
8373
  },
8374
+ "node_modules/jest-matcher-utils/node_modules/@jest/schemas": {
8375
+ "version": "30.0.5",
8376
+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz",
8377
+ "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==",
8378
+ "license": "MIT",
8379
+ "dependencies": {
8380
+ "@sinclair/typebox": "^0.34.0"
8381
+ },
8382
+ "engines": {
8383
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8384
+ }
8385
+ },
8386
+ "node_modules/jest-matcher-utils/node_modules/@sinclair/typebox": {
8387
+ "version": "0.34.41",
8388
+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz",
8389
+ "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==",
8390
+ "license": "MIT"
8391
+ },
8392
+ "node_modules/jest-matcher-utils/node_modules/ansi-styles": {
8393
+ "version": "5.2.0",
8394
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
8395
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
8396
+ "license": "MIT",
8397
+ "engines": {
8398
+ "node": ">=10"
8399
+ },
8400
+ "funding": {
8401
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
8402
+ }
8403
+ },
8404
+ "node_modules/jest-matcher-utils/node_modules/pretty-format": {
8405
+ "version": "30.2.0",
8406
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz",
8407
+ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==",
8408
+ "license": "MIT",
8409
+ "dependencies": {
8410
+ "@jest/schemas": "30.0.5",
8411
+ "ansi-styles": "^5.2.0",
8412
+ "react-is": "^18.3.1"
8413
+ },
8414
+ "engines": {
8415
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8416
+ }
8417
+ },
8418
+ "node_modules/jest-matcher-utils/node_modules/react-is": {
8419
+ "version": "18.3.1",
8420
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8421
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8422
+ "license": "MIT"
8423
+ },
8129
8424
  "node_modules/jest-message-util": {
8130
8425
  "version": "30.2.0",
8131
8426
  "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz",
@@ -8182,6 +8477,38 @@
8182
8477
  "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==",
8183
8478
  "license": "MIT"
8184
8479
  },
8480
+ "node_modules/jest-message-util/node_modules/ansi-styles": {
8481
+ "version": "5.2.0",
8482
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
8483
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
8484
+ "license": "MIT",
8485
+ "engines": {
8486
+ "node": ">=10"
8487
+ },
8488
+ "funding": {
8489
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
8490
+ }
8491
+ },
8492
+ "node_modules/jest-message-util/node_modules/pretty-format": {
8493
+ "version": "30.2.0",
8494
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz",
8495
+ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==",
8496
+ "license": "MIT",
8497
+ "dependencies": {
8498
+ "@jest/schemas": "30.0.5",
8499
+ "ansi-styles": "^5.2.0",
8500
+ "react-is": "^18.3.1"
8501
+ },
8502
+ "engines": {
8503
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
8504
+ }
8505
+ },
8506
+ "node_modules/jest-message-util/node_modules/react-is": {
8507
+ "version": "18.3.1",
8508
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8509
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8510
+ "license": "MIT"
8511
+ },
8185
8512
  "node_modules/jest-message-util/node_modules/slash": {
8186
8513
  "version": "3.0.0",
8187
8514
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -8431,6 +8758,12 @@
8431
8758
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
8432
8759
  }
8433
8760
  },
8761
+ "node_modules/jest-runner/node_modules/react-is": {
8762
+ "version": "18.3.1",
8763
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8764
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8765
+ "license": "MIT"
8766
+ },
8434
8767
  "node_modules/jest-runner/node_modules/slash": {
8435
8768
  "version": "3.0.0",
8436
8769
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -8543,6 +8876,12 @@
8543
8876
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
8544
8877
  }
8545
8878
  },
8879
+ "node_modules/jest-runtime/node_modules/react-is": {
8880
+ "version": "18.3.1",
8881
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
8882
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
8883
+ "license": "MIT"
8884
+ },
8546
8885
  "node_modules/jest-runtime/node_modules/slash": {
8547
8886
  "version": "3.0.0",
8548
8887
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -8687,6 +9026,12 @@
8687
9026
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
8688
9027
  }
8689
9028
  },
9029
+ "node_modules/jest-snapshot/node_modules/react-is": {
9030
+ "version": "18.3.1",
9031
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
9032
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
9033
+ "license": "MIT"
9034
+ },
8690
9035
  "node_modules/jest-snapshot/node_modules/semver": {
8691
9036
  "version": "7.7.3",
8692
9037
  "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
@@ -8780,6 +9125,12 @@
8780
9125
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
8781
9126
  }
8782
9127
  },
9128
+ "node_modules/jest-validate/node_modules/react-is": {
9129
+ "version": "18.3.1",
9130
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
9131
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
9132
+ "license": "MIT"
9133
+ },
8783
9134
  "node_modules/jest-watcher": {
8784
9135
  "version": "29.7.0",
8785
9136
  "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz",
@@ -8887,6 +9238,27 @@
8887
9238
  }
8888
9239
  }
8889
9240
  },
9241
+ "node_modules/jsdom/node_modules/escodegen": {
9242
+ "version": "2.1.0",
9243
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
9244
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
9245
+ "license": "BSD-2-Clause",
9246
+ "dependencies": {
9247
+ "esprima": "^4.0.1",
9248
+ "estraverse": "^5.2.0",
9249
+ "esutils": "^2.0.2"
9250
+ },
9251
+ "bin": {
9252
+ "escodegen": "bin/escodegen.js",
9253
+ "esgenerate": "bin/esgenerate.js"
9254
+ },
9255
+ "engines": {
9256
+ "node": ">=6.0"
9257
+ },
9258
+ "optionalDependencies": {
9259
+ "source-map": "~0.6.1"
9260
+ }
9261
+ },
8890
9262
  "node_modules/jsesc": {
8891
9263
  "version": "3.1.0",
8892
9264
  "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
@@ -9091,6 +9463,15 @@
9091
9463
  "node": ">=12"
9092
9464
  }
9093
9465
  },
9466
+ "node_modules/lz-string": {
9467
+ "version": "1.5.0",
9468
+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",
9469
+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
9470
+ "license": "MIT",
9471
+ "bin": {
9472
+ "lz-string": "bin/bin.js"
9473
+ }
9474
+ },
9094
9475
  "node_modules/make-dir": {
9095
9476
  "version": "2.1.0",
9096
9477
  "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
@@ -10165,47 +10546,52 @@
10165
10546
  }
10166
10547
  },
10167
10548
  "node_modules/pretty-format": {
10168
- "version": "30.2.0",
10169
- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz",
10170
- "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==",
10549
+ "version": "26.6.2",
10550
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",
10551
+ "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==",
10171
10552
  "license": "MIT",
10172
10553
  "dependencies": {
10173
- "@jest/schemas": "30.0.5",
10174
- "ansi-styles": "^5.2.0",
10175
- "react-is": "^18.3.1"
10554
+ "@jest/types": "^26.6.2",
10555
+ "ansi-regex": "^5.0.0",
10556
+ "ansi-styles": "^4.0.0",
10557
+ "react-is": "^17.0.1"
10176
10558
  },
10177
10559
  "engines": {
10178
- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
10560
+ "node": ">= 10"
10179
10561
  }
10180
10562
  },
10181
- "node_modules/pretty-format/node_modules/@jest/schemas": {
10182
- "version": "30.0.5",
10183
- "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz",
10184
- "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==",
10563
+ "node_modules/pretty-format/node_modules/@jest/types": {
10564
+ "version": "26.6.2",
10565
+ "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz",
10566
+ "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==",
10185
10567
  "license": "MIT",
10186
10568
  "dependencies": {
10187
- "@sinclair/typebox": "^0.34.0"
10569
+ "@types/istanbul-lib-coverage": "^2.0.0",
10570
+ "@types/istanbul-reports": "^3.0.0",
10571
+ "@types/node": "*",
10572
+ "@types/yargs": "^15.0.0",
10573
+ "chalk": "^4.0.0"
10188
10574
  },
10189
10575
  "engines": {
10190
- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
10576
+ "node": ">= 10.14.2"
10191
10577
  }
10192
10578
  },
10193
- "node_modules/pretty-format/node_modules/@sinclair/typebox": {
10194
- "version": "0.34.41",
10195
- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz",
10196
- "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==",
10197
- "license": "MIT"
10579
+ "node_modules/pretty-format/node_modules/@types/yargs": {
10580
+ "version": "15.0.20",
10581
+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.20.tgz",
10582
+ "integrity": "sha512-KIkX+/GgfFitlASYCGoSF+T4XRXhOubJLhkLVtSfsRTe9jWMmuM2g28zQ41BtPTG7TRBb2xHW+LCNVE9QR/vsg==",
10583
+ "license": "MIT",
10584
+ "dependencies": {
10585
+ "@types/yargs-parser": "*"
10586
+ }
10198
10587
  },
10199
- "node_modules/pretty-format/node_modules/ansi-styles": {
10200
- "version": "5.2.0",
10201
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
10202
- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
10588
+ "node_modules/pretty-format/node_modules/ansi-regex": {
10589
+ "version": "5.0.1",
10590
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
10591
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
10203
10592
  "license": "MIT",
10204
10593
  "engines": {
10205
- "node": ">=10"
10206
- },
10207
- "funding": {
10208
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
10594
+ "node": ">=8"
10209
10595
  }
10210
10596
  },
10211
10597
  "node_modules/progress": {
@@ -10356,10 +10742,26 @@
10356
10742
  "react": "^19.2.3"
10357
10743
  }
10358
10744
  },
10745
+ "node_modules/react-error-boundary": {
10746
+ "version": "3.1.4",
10747
+ "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz",
10748
+ "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==",
10749
+ "license": "MIT",
10750
+ "dependencies": {
10751
+ "@babel/runtime": "^7.12.5"
10752
+ },
10753
+ "engines": {
10754
+ "node": ">=10",
10755
+ "npm": ">=6"
10756
+ },
10757
+ "peerDependencies": {
10758
+ "react": ">=16.13.1"
10759
+ }
10760
+ },
10359
10761
  "node_modules/react-is": {
10360
- "version": "18.3.1",
10361
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
10362
- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
10762
+ "version": "17.0.2",
10763
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
10764
+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
10363
10765
  "license": "MIT"
10364
10766
  },
10365
10767
  "node_modules/read-package-up": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.11-n18-experimental",
3
+ "version": "0.5.12-n18-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -27,6 +27,8 @@
27
27
  "@playwright/test": "1.53.2",
28
28
  "@reportportal/agent-js-playwright": "5.1.11",
29
29
  "@testing-library/jest-dom": "5.11.9",
30
+ "@testing-library/react": "11.2.7",
31
+ "@testing-library/react-hooks": "7.0.2",
30
32
  "babel-jest": "29.6.2",
31
33
  "babel-plugin-transform-dynamic-import": "2.1.0",
32
34
  "fast-glob": "3.3.1",
@@ -1,14 +1,17 @@
1
1
  // @ts-check
2
2
  const { defineConfig, devices } = require('@playwright/test');
3
3
  const path = require('path');
4
- const numCPUs = require('os').cpus().length;
4
+ import configConstants from './src/core/playwright/constants/configConstants';
5
+ import { getRunStage } from './src/core/playwright/configuration/ConfigurationHelper';
6
+
7
+ const stage = getRunStage();
5
8
 
6
9
  export default defineConfig({
7
- testDir: path.join(path.resolve(process.cwd()), 'uat'),
8
- outputDir: path.join(process.cwd(), 'uat', 'test-results'),
10
+ testDir: path.join(path.resolve(process.cwd()), configConstants.TEST_SLICE_FOLDER, stage),
11
+ outputDir: path.join(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage , 'test-results'),
9
12
  fullyParallel: true,
10
13
  retries: process.env.CI ? 2 : 0,
11
- reporter: [['html', { outputFolder: path.join(process.cwd(), 'uat', 'playwright-report'), open: "always" }]],
14
+ reporter: [['html', { outputFolder: path.join(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright-report'), open: "always" }]],
12
15
  timeout: 60 * 1000,
13
16
  expect: {
14
17
  timeout: 5 * 1000,
@@ -26,7 +29,7 @@ export default defineConfig({
26
29
  name: 'chromium',
27
30
  use: {
28
31
  ...devices['Desktop Chrome'],
29
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
32
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
30
33
  },
31
34
  dependencies: ['setup'],
32
35
  },
@@ -39,7 +42,7 @@ export default defineConfig({
39
42
  },
40
43
  use: {
41
44
  ...devices['Desktop Firefox'],
42
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
45
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
43
46
  },
44
47
  dependencies: ['setup'],
45
48
  },
@@ -52,7 +55,7 @@ export default defineConfig({
52
55
  },
53
56
  use: {
54
57
  ...devices['Desktop Safari'],
55
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
58
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
56
59
  },
57
60
  dependencies: ['setup'],
58
61
  },