@dev-blinq/cucumber_client 1.0.1277-dev → 1.0.1279-dev

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.
@@ -144,7 +144,7 @@ class BVTRecorder {
144
144
  getAction: (e) => {
145
145
  this.eventUtils.consumeEvent(e);
146
146
  },
147
- getInterestedElement: () => {},
147
+ getInterestedElement: () => { },
148
148
  hoverOutlineStyle: "",
149
149
  });
150
150
 
@@ -159,7 +159,7 @@ class BVTRecorder {
159
159
  };
160
160
  },
161
161
  getAction: () => null,
162
- getInterestedElement: () => {},
162
+ getInterestedElement: () => { },
163
163
  hoverOutlineStyle: "",
164
164
  });
165
165
 
@@ -174,7 +174,7 @@ class BVTRecorder {
174
174
  };
175
175
  },
176
176
  getAction: () => null,
177
- getInterestedElement: () => {},
177
+ getInterestedElement: () => { },
178
178
  hoverOutlineStyle: "",
179
179
  });
180
180
 
@@ -642,6 +642,8 @@ class BVTRecorder {
642
642
  // Get all attributes
643
643
  if (element.attributes) {
644
644
  for (const attr of element.attributes) {
645
+ if (attr.name === "data-input-id") continue; // skip input id attribute
646
+ if (attr.name === "data-blinq-id") continue; // skip blinq id attribute{
645
647
  unsortedAttributes[attr.name] = attr.value;
646
648
  }
647
649
  }
@@ -649,6 +651,8 @@ class BVTRecorder {
649
651
  // Get dataset properties (data-* attributes)
650
652
  if (element.dataset) {
651
653
  for (const [key, value] of Object.entries(element.dataset)) {
654
+ if (key === "inputId") continue; // skip input id dataset property
655
+ if (key === "blinqId") continue; // skip blinq id dataset property
652
656
  unsortedDataset[key] = value;
653
657
  }
654
658
  }
@@ -346,12 +346,12 @@ class LocatorGenerator {
346
346
  for (const part of parts) {
347
347
 
348
348
  if (part.name !== "internal:text") {
349
- finalSelector += `${part.name === "css" ? "" : part.name}=${part.source} >> `;
349
+ finalSelector += `${part.name === "css" ? "" : part.name + "="}${part.source} >> `;
350
350
  continue;
351
351
  }
352
352
  if (typeof part.body !== "string" || part.body.length === 0) {
353
353
  // console.error("Locator must have a valid text in the first part to be a digit ignore locator");
354
- finalSelector += `${part.name === "css" ? "" : part.name}=${part.source} >> `;
354
+ finalSelector += `${part.name === "css" ? "" : part.name + "="}${part.source} >> `;
355
355
  continue;
356
356
  }
357
357
  const text = part.body;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1277-dev",
3
+ "version": "1.0.1279-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -19,7 +19,8 @@
19
19
  "scripts_regression": "cross-env HEADLESS=true npx mocha --bail --parallel --jobs=12 ./scripts_regression/ --timeout 120000",
20
20
  "runtime_reg": "cross-env HEADLESS=true npx mocha --bail --parallel --jobs=12 ./runtime_regression/ --timeout 4800000",
21
21
  "bundle": "npx tsup",
22
- "bundle:watch": "npx tsup --watch"
22
+ "bundle:watch": "npx tsup --watch",
23
+ "regenerate_baselines": "rm -rf ./scripts_regression/locators_baseline/* ./scripts_regression/commands_baseline/* && npm run scripts_regression && npm run scripts_regression"
23
24
  },
24
25
  "author": "",
25
26
  "license": "ISC",
@@ -31,7 +32,7 @@
31
32
  "@cucumber/tag-expressions": "^6.1.1",
32
33
  "@dev-blinq/cucumber-js": "1.0.175-dev",
33
34
  "@faker-js/faker": "^8.1.0",
34
- "automation_model": "1.0.757-dev",
35
+ "automation_model": "1.0.758-dev",
35
36
  "axios": "^1.7.4",
36
37
  "chokidar": "^3.6.0",
37
38
  "create-require": "^1.1.1",