@cloudscape-design/browser-test-tools 3.0.4 → 3.0.6

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.
@@ -32,7 +32,7 @@ export default class BasePageObject {
32
32
  isExisting(selector: string): Promise<boolean>;
33
33
  isDisplayed(selector: string): Promise<boolean>;
34
34
  getElementAttribute(selector: string, attributeName: string): Promise<string>;
35
- getElementProperty(selector: string, propertyName: string): Promise<string | number | boolean | Element | ChildNode | ParentNode | Document | HTMLElement | CSSStyleDeclaration | DOMStringMap | DOMTokenList | HTMLCollection | HTMLSlotElement | NamedNodeMap | ShadowRoot | OnErrorEventHandler | NodeListOf<ChildNode> | {
35
+ getElementProperty(selector: string, propertyName: string): Promise<string | number | boolean | EventTarget | Element | ChildNode | ParentNode | Document | HTMLElement | CSSStyleDeclaration | DOMStringMap | DOMTokenList | HTMLCollection | HTMLSlotElement | NamedNodeMap | ShadowRoot | OnErrorEventHandler | NodeListOf<ChildNode> | {
36
36
  <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
37
37
  (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
38
38
  } | {
@@ -108,6 +108,7 @@ class BasePageObject {
108
108
  }
109
109
  async windowScrollTo({ top = 0, left = 0 }) {
110
110
  await this.browser.execute(browser_scripts_1.windowScrollTo, top, left);
111
+ await this.pause(100);
111
112
  }
112
113
  async getElementScroll(selector) {
113
114
  return this.browser.execute(browser_scripts_1.getElementScrollPosition, selector);
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "url": "https://github.com/cloudscape-design/browser-test-tools/issues"
4
4
  },
5
5
  "bundleDependencies": false,
6
- "commit": "ee59a9e",
6
+ "commit": "5a7997f",
7
7
  "dependencies": {
8
8
  "@types/pngjs": "^6.0.1",
9
- "aws-sdk": "^2.1140.0",
9
+ "aws-sdk": "^2.1233.0",
10
10
  "get-stream": "^6.0.1",
11
11
  "lodash": "^4.17.21",
12
12
  "p-retry": "^4.6.2",
13
13
  "pixelmatch": "^5.3.0",
14
14
  "pngjs": "^6.0.0",
15
- "webdriverio": "^7.19.7"
15
+ "webdriverio": "^7.25.2"
16
16
  },
17
17
  "deprecated": false,
18
18
  "description": "This package contains the source code for tools used for building and testing the React components for the [Cloudscape Design System](https://cloudscape.design/).",
@@ -59,6 +59,6 @@
59
59
  "type": "git",
60
60
  "url": "git+https://github.com/cloudscape-design/browser-test-tools.git"
61
61
  },
62
- "version": "3.0.4",
62
+ "version": "3.0.6",
63
63
  "license": "Apache-2.0"
64
64
  }