-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(wdio): upgrade to wdio7 webdriverio, @wdio/*, and wdio-chromedriver-service to "7" package.json and yarn.lock * feat(wdio7): wdio.config.js * feat(wdio7): remove @wdio/sync Convert all sync things to async and promises. Remove references to @wdio/sync in `.depcheckrc` as it's removed now. * test(wdio): finish fixing the test failures for the wdio suite Tests are passing now * feat: tsconfig package for tsconfig.json * refactor(ts-node): add wdio/async to tsconfig types * refactor: mocha to jasmine Swap @wdio/mocha-framework for @wdio/jasmine-framework * fix(jasmine): add jasmine types to tsc Let typescript compiler (TSC) know about Jasmine * refactor: import @jest/globals * refactor(common): remove custom typedef WdioBrowser In Webdriverio 7, there are differences between `WebdriverIO.Browser` and `WebdriverIO.MultiRemoteBrowser` in the functional types and arguments. For simplicity, we'll only support single browser sessions. * refactor: checkA11yError and checkA11yErrorFunc * refactor: checkA11yErrorWdio * test: update all Jest snapshots Update/remove dead Jest snapshots * chore(depcheck): make depcheck happy `@sally/common` is a `devDependency` as it's needed for a `__wdio__` test, but depcheck really wants it as a `dependency`. * test(jest): disable one test The test relies on overwriting/mocking the global `expect`, which is now difficult to do due to `import { expect } from '@jest/globals'` * refactor(jest): async optimization Refactor async/await afterEach * fix(test-integration): add @sally/common to devDependencies * docs: update dependency graph * fix(eslint): eslint cannot see expect().toBeAccessible() Since we are now using `import { expect } from '@jest/globals'`, the type info just isn't there for our custom matcher. It will be available when we upgrade to Jest 28: https://jestjs.io/blog/2022/04/25/jest-28#expect For now, we disable eslint rule for these tests. * fix(eslint): fixing eslint complaints `testPath` is type `string | undefined`, so coerce it to `string` for the template expression on the next line. (@typescript-eslint/restrict-template-expressions) Providing an anonymous function for `afterEach` to clarify `this` scoping (@typescript-eslint/unbound-method) * chore(deps): yarn.lock refreshing yarn.lock * test(jest): disable a fake timer test It's not clear if this is a bad test or bad system-under-test (SUT), but fake timers are involved. Let's test during beta testing, and also revisit with Jest 28. * build(renovate): keep webdriverio and related packages up-to-date Let's keep WDIO up-to-date, now that we are upgraded to 7.x. * build(circleci): prepare for matrix jobs Re-arranging circle CI config to enable node16 testing * build(circleci): add node 14, node 16 for CircleCI Add more nodejs versions
- Loading branch information
1 parent
cd2dfd7
commit 70dafc2
Showing
52 changed files
with
2,321 additions
and
1,866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,14 @@ orbs: | |
codecov: codecov/[email protected] | ||
jobs: | ||
build-and-test: | ||
parameters: | ||
node-version: | ||
type: string | ||
executor: | ||
name: node/default | ||
# TODO: switch back to 'lts'. Temp workaround for issues with lts v16. | ||
# https://github.com/salesforce/sa11y/issues/82 | ||
tag: '14.18.1' | ||
tag: << parameters.node-version >> | ||
steps: | ||
- browser-tools/install-chrome | ||
- browser-tools/install-chromedriver | ||
|
@@ -23,6 +26,11 @@ jobs: | |
path: ./reports/ | ||
- codecov/upload | ||
workflows: | ||
build-and-test: | ||
matrix-tests: | ||
jobs: | ||
- build-and-test | ||
- build-and-test: | ||
matrix: | ||
parameters: | ||
node-version: | ||
- '14.19.3' | ||
- '16.16.0' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
packages/assert/__tests__/__snapshots__/assert.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore webdriverio - we need the types for `WebdriverIO.Browser` | ||
ignores: ['webdriverio'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.