@cuppet/core 1.1.3 → 1.1.5

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.
@@ -20,7 +20,7 @@
20
20
  "html_report": "backStopData/html_report",
21
21
  "ci_report": "backStopData/ci_report"
22
22
  },
23
- "report": ["browser"],
23
+ "report": ["CI"],
24
24
  "engine": "puppeteer",
25
25
  "engineOptions": {
26
26
  "args": ["--headless=new"]
@@ -4,7 +4,7 @@ const AppiumManager = require('./appiumManager');
4
4
  const fs = require('fs');
5
5
  const config = require('config');
6
6
  const dataStore = require('../../src/dataStorage');
7
- const profile = process.env.NODE_CONFIG_ENV;
7
+ const profile = process.env.NODE_CONFIG_ENV || 'default';
8
8
 
9
9
  let screenshotPath = config.get('screenshotsPath').toString() ?? 'screenshots/';
10
10
 
@@ -26,7 +26,8 @@ Then('the property {string} should be an {string}', async function (property, ty
26
26
  await apiSteps.propertyIs(property, type);
27
27
  });
28
28
  Then('the response should have property {string} with value {string}', async function (property, value) {
29
- await apiSteps.propertyHasValue(property, value);
29
+ const checkedValue = await dataStorage.checkForVariable(value);
30
+ await apiSteps.propertyHasValue(property, checkedValue);
30
31
  });
31
32
  When('I store {string} to {string} variable', async function (property, variable) {
32
33
  await apiSteps.iRememberVariable(property, variable);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuppet/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Core testing framework components for Cuppet - BDD framework based on Cucumber and Puppeteer",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -23,36 +23,36 @@
23
23
  "author": "Miroslav Rusev",
24
24
  "license": "ISC",
25
25
  "peerDependencies": {
26
- "@cucumber/cucumber": "^11.0.0",
27
- "config": "^3.3.9"
26
+ "@cucumber/cucumber": "^12.0.0",
27
+ "config": "^4.1.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@supercharge/strings": "^2.0.0",
31
- "@wdio/globals": "^9.14.0",
32
- "appium": "^2.18.0",
33
- "appium-uiautomator2-driver": "^4.2.3",
34
- "axios": "^1.8.2",
31
+ "@wdio/globals": "9.17.0",
32
+ "appium": "3.0.1",
33
+ "appium-uiautomator2-driver": "5.0",
34
+ "axios": "^1.11.0",
35
35
  "backstopjs": "^6.3.23",
36
- "chai": "^4.3.7",
37
- "lighthouse": "^12.1.0",
36
+ "chai": "6.0.1",
37
+ "lighthouse": "^12.8.0",
38
38
  "mime": "^3.0.0",
39
39
  "mime-types": "^3.0.1",
40
40
  "moment": "^2.30.1",
41
- "pa11y": "^8.0.0",
41
+ "pa11y": "^9.0.0",
42
42
  "pa11y-reporter-html": "^2.0.0",
43
43
  "puppeteer": "^24.0.1",
44
44
  "webdriverio": "9.12.7",
45
45
  "xml2js": "^0.6.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@cucumber/cucumber": "^11.0.0",
48
+ "@cucumber/cucumber": "^12.0.0",
49
49
  "@html-eslint/eslint-plugin": "^0.43.1",
50
50
  "@html-eslint/parser": "^0.43.0",
51
51
  "@semantic-release/changelog": "^6.0.3",
52
52
  "@semantic-release/git": "^10.0.1",
53
53
  "@semantic-release/github": "^11.0.3",
54
54
  "@semantic-release/npm": "^12.0.1",
55
- "config": "^3.3.9",
55
+ "config": "^4.1.0",
56
56
  "eslint": "^9.29.0",
57
57
  "eslint-config-prettier": "^10.1.5",
58
58
  "eslint-plugin-prettier": "^5.5.1",
@@ -44,7 +44,7 @@ module.exports = {
44
44
  * @returns {Promise<void>}
45
45
  */
46
46
  createHtmlReport: async function (fileName, data) {
47
- const profile = process.env.NODE_CONFIG_ENV;
47
+ const profile = process.env.NODE_CONFIG_ENV || 'default';
48
48
  fs.writeFile(`reports/${profile}/${fileName}.html`, data, (err) => {
49
49
  if (err) throw err;
50
50
  console.log(`Html report: ${fileName}.html is generated!`);
@@ -9,7 +9,7 @@ module.exports = {
9
9
  */
10
10
  backstopConfigPrepare: function () {
11
11
  let newConfig = backStopConfig;
12
- newConfig.id = process.env.NODE_CONFIG_ENV;
12
+ newConfig.id = process.env.NODE_CONFIG_ENV || 'default';
13
13
  const browserViewport = config.get('browserOptions.viewport.backstop');
14
14
  newConfig.viewports[0].width = Number(browserViewport.width);
15
15
  newConfig.viewports[0].height = Number(browserViewport.height);