-
Notifications
You must be signed in to change notification settings - Fork 0
changes for accessibility automation inbrowserstack service #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v8
Are you sure you want to change the base?
Conversation
* (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev>
…iverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed
…support for Node.js v16 closes webdriverio#11938 fixes webdriverio#11858
fix type issues fix unit tests
* V9 drop support for Node.js 16 (webdriverio#11493) * (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev> * (webdriverio): merge isDisplayed and isDisplayedWithinViewport (webdriverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed * V9 drop support for Node.js 16 (webdriverio#11493) * (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev> * (webdriverio): merge isDisplayed and isDisplayedWithinViewport (webdriverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed * V9 remove jsonWireProtocol * V9 drop support for Node.js 16 (webdriverio#11493) * (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev> * (webdriverio): merge isDisplayed and isDisplayedWithinViewport (webdriverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed * (internal): update some dependencies that couldn't be updated due to support for Node.js v16 closes webdriverio#11938 fixes webdriverio#11858 * (webdriverio): make puppeteer a peer dependency (webdriverio#12103) * (webdriverio): make puppeteer a peer dependency * fix type issues * fix unit tests --------- Co-authored-by: Erwin Heitzman <15839059+erwinheitzman@users.noreply.github.com> Co-authored-by: Christian Bromann <git@bromann.dev>
* V9 drop support for Node.js 16 (webdriverio#11493) * (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev> * (webdriverio): merge isDisplayed and isDisplayedWithinViewport (webdriverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed * V9 drop support for Node.js 16 (webdriverio#11493) * (internal): drop support for Node.js 16 update engines of package.json files * (internal): drop support for Node.js 16 update CONTRIBUTING.md with Node.js 20 as recommendation * (internal): drop support for Node.js 16 update github workflows * (internal): drop support for Node.js 16 update external packages that dropped the support already * (internal): drop support for Node.js 16 resolve PR feedback * Update packages/webdriver/package.json * Update packages/wdio-cucumber-framework/package.json * Update package.json --------- Co-authored-by: Christian Bromann <git@bromann.dev> * (webdriverio): merge isDisplayed and isDisplayedWithinViewport (webdriverio#11857) * (webdriverio): merge isDisplayed and isDisplayedWithinViewport * allow to specify withinViewport check in waitForDisplayed * Migrating from got to fetch * Migrate got to fetch in packages * migrate got to fetch & update unit test * doc update for proxy setup * rebase and migrate got to fetch in browserstack * Migrate hostname from 0.0.0.0 to localhost * fix unit test by removing headers in safari driver * fix smoke test: update nock to beta * fix launch test for firefox * fix unit test for startGeckodriver * fix firefox executions in node 18 * Incorporating review comments * fix component tests * cleaning up RequestLibOptions * Removing RequestLibOptions & incorporating other review comments * use process from globalThis --------- Co-authored-by: Erwin Heitzman <15839059+erwinheitzman@users.noreply.github.com> Co-authored-by: Christian Bromann <git@bromann.dev>
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.0.33 to 0.2.1. - [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md) - [Commits](raszi/node-tmp@v0.0.33...v0.2.1) --- updated-dependencies: - dependency-name: tmp dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [split2](https://github.com/mcollina/split2) from 3.2.2 to 4.2.0. - [Release notes](https://github.com/mcollina/split2/releases) - [Commits](mcollina/split2@v3.2.2...v4.2.0) --- updated-dependencies: - dependency-name: split2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [yauzl](https://github.com/thejoshwolfe/yauzl) from 2.10.0 to 3.0.0. - [Commits](thejoshwolfe/yauzl@2.10.0...3.0.0) --- updated-dependencies: - dependency-name: yauzl dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [change-case](https://github.com/blakeembrey/change-case) from 4.1.2 to 5.4.3. - [Release notes](https://github.com/blakeembrey/change-case/releases) - [Commits](https://github.com/blakeembrey/change-case/compare/change-case@4.1.2...change-case@5.4.3) --- updated-dependencies: - dependency-name: change-case dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Updating capabilities for Lamdatest & Browserstack * fix bootstrap & component test
…riverio#12318) * docs: Updated Contributing guide to mention PNPM instead of NPM * docs: Corrected pnpm commands
…ck-accessibility-stability-changes
| if (this._accessibility) { | ||
| if (Array.isArray(accessibilityScripts.commandsToWrap)) { | ||
| const that = this | ||
| accessibilityScripts.commandsToWrap.forEach(async function (command) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use arrow function [optional]
| const that = this | ||
| accessibilityScripts.commandsToWrap.forEach(async function (command) { | ||
| if (command.name && command.class) { | ||
| await (that._browser as WebdriverIO.Browser).overwriteCommand(command.name, async function (origFunction: Function, ...args: any[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ca use arrow function [optional]
| interface Browser { | ||
| getAccessibilityResultsSummary: () => Promise<{ [key: string]: any; }>, | ||
| getAccessibilityResults: () => Promise<Array<{ [key: string]: any; }>> | ||
| performScan: () => Promise<unknown> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change type
| ( | ||
| !command.name.includes('execute') || | ||
| !AccessibilityHandler.isBrowserstackScript(args.length ? args[0] : null) | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args?[0]
| const isPageOpened = await this.checkIfPageOpened(this._browser, testIdentifier, shouldScanTest) | ||
|
|
||
| if (this._sessionId) { | ||
| /* For case with multiple tests under onw browser, before hook of 2nd test should change this map value */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spell
| const isPageOpened = await this.checkIfPageOpened(this._browser, uniqueId, shouldScanScenario) | ||
|
|
||
| if (this._sessionId) { | ||
| /* For case with multiple tests under onw browser, before hook of 2nd test should change this map value */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spell
Proposed changes
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/project-committers