@applitools/driver 1.19.0 → 1.19.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.19.1](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.19.0...js/driver@1.19.1) (2024-09-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * stale layout breakpoints elements ([#2479](https://github.com/Applitools-Dev/sdk/issues/2479)) ([f5e4b5a](https://github.com/Applitools-Dev/sdk/commit/f5e4b5ac8077b8c4b7ba67a38c4e58050a55ce75))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.5.0
14
+ #### Features
15
+
16
+ * add playwright fixture ([#2412](https://github.com/Applitools-Dev/sdk/issues/2412)) ([0632e93](https://github.com/Applitools-Dev/sdk/commit/0632e93dd7f53029a8c5f4230d22a05abf5fefd4))
17
+
18
+
19
+ #### Bug Fixes
20
+
21
+ * stale layout breakpoints elements ([#2479](https://github.com/Applitools-Dev/sdk/issues/2479)) ([f5e4b5a](https://github.com/Applitools-Dev/sdk/commit/f5e4b5ac8077b8c4b7ba67a38c4e58050a55ce75))
22
+
3
23
  ## [1.19.0](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.18.0...js/driver@1.19.0) (2024-09-10)
4
24
 
5
25
 
@@ -142,16 +142,12 @@ class MockDriver {
142
142
  this.mockScript(snippets.blurElement, () => {
143
143
  return null;
144
144
  });
145
- this.mockScript(snippets.addElementIds, ([elements, ids]) => {
146
- const selectors = [];
147
- for (const [index, element] of elements.entries()) {
148
- const elementId = ids[index];
145
+ this.mockScript(snippets.addElementIds, elementsWithIds => {
146
+ return elementsWithIds.map(([elements, id]) => elements.map(element => {
149
147
  element.attributes = element.attributes || [];
150
- element.attributes.push({ name: 'data-applitools-selector', value: elementId });
151
- const selector = `[data-applitools-selector~="${elementId}"]`;
152
- selectors.push([selector]);
153
- }
154
- return selectors;
148
+ element.attributes.push({ name: 'data-applitools-marker', value: id });
149
+ return [`[data-applitools-marker~="${id}"]`]; // no shadow is mocked here
150
+ }));
155
151
  });
156
152
  this.mockScript(snippets.cleanupElementIds, ([elements]) => {
157
153
  for (const el of elements) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@applitools/logger": "2.0.18",
77
- "@applitools/snippets": "2.4.27",
77
+ "@applitools/snippets": "2.5.0",
78
78
  "@applitools/utils": "1.7.4",
79
79
  "semver": "7.6.2"
80
80
  },