@applitools/driver 1.16.1 → 1.16.2

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.16.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/driver@1.16.1...js/driver@1.16.2) (2024-01-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * losing root context after layout breakpoints reload ([#2113](https://github.com/applitools/eyes.sdk.javascript1/issues/2113)) ([afa1473](https://github.com/applitools/eyes.sdk.javascript1/commit/afa14735e5539ab0f79aa610e6ec1ea8989a5922))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.4.25
14
+ #### Bug Fixes
15
+
16
+ * losing root context after layout breakpoints reload ([#2113](https://github.com/applitools/eyes.sdk.javascript1/issues/2113)) ([afa1473](https://github.com/applitools/eyes.sdk.javascript1/commit/afa14735e5539ab0f79aa610e6ec1ea8989a5922))
17
+
3
18
  ## [1.16.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/driver@1.16.0...js/driver@1.16.1) (2023-12-19)
4
19
 
5
20
 
package/dist/driver.js CHANGED
@@ -77,7 +77,10 @@ class Driver {
77
77
  this._currentContext = context;
78
78
  }
79
79
  async reloadPage() {
80
- await this.mainContext.execute(snippets.reloadPage).catch(() => null);
80
+ if (this._spec.reload)
81
+ await this._spec.reload(this.target);
82
+ else
83
+ await this.mainContext.execute(snippets.reloadPage).catch(() => null);
81
84
  const refreshThis = await this.refresh({ reset: false });
82
85
  const scrollingElement = await this.mainContext.getScrollingElement();
83
86
  await (scrollingElement === null || scrollingElement === void 0 ? void 0 : scrollingElement.refresh());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
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.14",
77
- "@applitools/snippets": "2.4.24",
77
+ "@applitools/snippets": "2.4.25",
78
78
  "@applitools/utils": "1.7.0",
79
79
  "semver": "7.5.4"
80
80
  },
@@ -127,6 +127,7 @@ export interface SpecDriver<T extends SpecType> {
127
127
  getCurrentWorld?(driver: T['driver']): Promise<string>;
128
128
  getWorlds?(driver: T['driver']): Promise<string[]>;
129
129
  switchWorld?(driver: T['driver'], id: string): Promise<void>;
130
+ reload?(driver: T['driver']): Promise<void>;
130
131
  }
131
132
  export type WaitOptions = {
132
133
  state?: 'exist' | 'visible';