@amanat-qa/utils-frontend 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amanat-qa/utils-frontend",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,13 +1,13 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
- require('dotenv').config({ path: path.join(__dirname, '../../../../../', '.env.test'), override: true });
3
+ require('dotenv').config({ path: path.join('../../../../../../', '.env.test'), override: true });
4
4
 
5
- const envDirectory = path.join(__dirname, '../../../../../');
6
- const loaderFileLocation = path.join(__dirname, '../../../../../test/main/utils/data/', 'JSONLoader.js');
7
- const testClientsFileLocation = path.join(envDirectory, './test/resources/data/testClients.json');
8
- const testCarsFileLocation = path.join(envDirectory, './test/resources/data/testCars.json');
9
- const JSONDirectory = path.join(envDirectory, './test/resources');
10
- const suitesDirectory = path.join(envDirectory, './test/tests/suites');
5
+ const envDirectory = path.join(__dirname, '../../../../../../');
6
+ const loaderFileLocation = path.join(envDirectory, './cypress/test/main/utils/data/', 'JSONLoader.js');
7
+ const testClientsFileLocation = path.join(envDirectory, './cypress/test/resources/data/testClients.json');
8
+ const testCarsFileLocation = path.join(envDirectory, './cypress/test/resources/data/testCars.json');
9
+ const JSONDirectory = path.join(envDirectory, './cypress/test/resources');
10
+ const suitesDirectory = path.join(envDirectory, './cypress/test/tests/suites');
11
11
  const jsonExtension = '.json';
12
12
  const testExtension = '.test';
13
13
  const testSuitePattern = 'Suite.js';
@@ -62,19 +62,6 @@ const setConfigData = (directory, extension) => {
62
62
  console.log(' [err] incorrect value of "VERIFICATION" .env variable!');
63
63
  }
64
64
 
65
- try {
66
- const value = JSON.parse(process.env.SET_POLICY_WAITING_TWB ?? data.setPolicyWaitingTWB);
67
- data.setPolicyWaitingTWB = Boolean(value);
68
- } catch (error) { // eslint-disable-next-line no-console
69
- console.log(' [err] incorrect value of "SET_POLICY_WAITING_TWB" .env variable!');
70
- }
71
-
72
- try {
73
- data.getPolicyTWB = Boolean(JSON.parse(process.env.GET_POLICY_TWB ?? data.getPolicyTWB));
74
- } catch (error) { // eslint-disable-next-line no-console
75
- console.log(' [err] incorrect value of "GET_POLICY_TWB" .env variable!');
76
- }
77
-
78
65
  if (process.env.GATEWAY_URL) {
79
66
  const value = process.env.GATEWAY_URL.match(/\b(?:localhost|dev|staging)\b/g);
80
67
  if (value) {