Skip to content
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

Migrate the custom element polyfill tests to @web/test-runner. #509

Merged
merged 112 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 111 commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
b094823
Update `@web/test-runner-playwright`.
bicknellr Jan 24, 2022
feecd76
Update `@web/test-runner`.
bicknellr Jan 26, 2022
7adcd53
Update `@web/test-runner-mocha`.
bicknellr Jan 26, 2022
d833567
Add a `wtr` folder to the custom elements polyfill tests folder.
bicknellr Jan 26, 2022
9103dd6
Copy tests for `Document.prototype.createElement`.
bicknellr Jan 26, 2022
68ecb0a
Update the `Document.prototype.createElement` tests to work with `@we…
bicknellr Jan 27, 2022
62408cf
Remove WCT version of `Document.prototype.createElement` tests.
bicknellr Jan 27, 2022
0c16e67
Convert `Document.prototype.createElementNS` tests to `@web/test-runn…
bicknellr Jan 27, 2022
eb7e0af
Convert `Document.prototype.importNode` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
f8c4012
Run the `@web/test-runner` tests during `npm run test`. (...)
bicknellr Jan 27, 2022
ccb779a
Convert the `Node.prototype.insertBefore` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
0c98fb1
Convert the `Node.prototype.appendChild` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
22f4ae4
Convert the `Node.prototype.cloneNode` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
5f5e529
Convert the `Node.prototype.removeChild` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
5ef5866
Convert the `Node.prototype.replaceChild` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
12d5b0f
Convert the `Node.prototype.textContent` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
ec8a373
Convert the `Element.prototype.attachShadow` tests to `@web/test-runn…
bicknellr Jan 27, 2022
ce3d14d
Convert the `Element.prototype.innerHTML` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
9fb436c
Merge remote-tracking branch 'origin/master' into convert-to-wtr
bicknellr Jan 27, 2022
c162848
Run tests in `@webcomponents/scoped-custom-element-registry` again no…
bicknellr Jan 27, 2022
49de53f
Convert the `Element.prototype.setAttribute` tests to `@web/test-runn…
bicknellr Jan 27, 2022
51925bd
Convert the `Element.prototype.setAttributeNS` tests to `@web/test-ru…
bicknellr Jan 27, 2022
71bf93f
Convert the `Element.prototype.removeAttribute` tests to `@web/test-r…
bicknellr Jan 27, 2022
a01f579
Convert the `Element.prototype.removeAttributeNS` tests to `@web/test…
bicknellr Jan 27, 2022
cb494a8
Convert the `Element.prototype.insertAdjacentElement` tests to `@web/…
bicknellr Jan 27, 2022
424a0a0
Convert the `Element.prototype.insertAdjacentHTML` tests to `@wtr/tes…
bicknellr Jan 27, 2022
7279b9f
Convert the `Element.prototype.outerHTML` tests to `@web/test-runner`…
bicknellr Jan 27, 2022
0ea49fb
Skip the `Element.prototype.outerHTML` tests. (...)
bicknellr Jan 27, 2022
7071628
Convert the `HTMLElement` constructor tests to `@web/test-runner`.
bicknellr Jan 27, 2022
bca24ce
Convert the `ChildNode` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
7e4896e
Convert the `ParentNode` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
713718e
Convert the `DocumentConstructionObserver` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
67fc102
Convert the 'reactions' tests to `@web/test-runner`.
bicknellr Jan 27, 2022
f7a54c8
Convert the 'registry' tests to `@web/test-runner`.
bicknellr Jan 27, 2022
afd6cda
Convert the `instanceof` tests to `@web/test-runner`.
bicknellr Jan 27, 2022
c1f9949
Convert the TypeScript tests to `@web/test-runner`.
bicknellr Jan 27, 2022
5ecb461
Convert the Babel tests to `@web/test-runner`.
bicknellr Jan 27, 2022
6e0eefd
Convert the Closure tests to `@web/test-runner`.
bicknellr Jan 27, 2022
185720a
Convert the 'upgrade' tests to `@web/test-runner`.
bicknellr Jan 27, 2022
c3151cf
Convert the Shadow DOM tests to `@web/test-runner`.
bicknellr Jan 28, 2022
308aef1
Convert the 'polyfill define lazy' tests to `@web/test-runner`.
bicknellr Jan 28, 2022
511f734
Convert the 'registry upgrade' tests to `@web/test-runner`.
bicknellr Jan 28, 2022
bc66ec8
Convert `polyfillWrapFlushCallback` 'flush callback is called' tests …
bicknellr Jan 28, 2022
0387fbe
Convert the `polyfillWrapFlushCallback` 'define does not walk' tests …
bicknellr Jan 28, 2022
acaec49
Convert `polyfillWrapFlushCallback` 'multiple define calls' tests to …
bicknellr Jan 28, 2022
dc402cd
Convert `polyfillWrapFlushCallback` 'multiple flush callbacks orderin…
bicknellr Jan 28, 2022
d31fc50
Convert the `polyfillWrapFlushCallback` 'multiple flush callbacks blo…
bicknellr Jan 28, 2022
9bd424a
Convert the `polyfillWrapFlushCallback` 'default sync flush' tests to…
bicknellr Jan 28, 2022
f60f34e
Convert the `polyfillWrapFlushCallback` '`whenDefined` before' tests …
bicknellr Jan 28, 2022
859ce9f
Convert the `polyfillWrapFlushCallback` '`whenDefined` after' tests t…
bicknellr Jan 28, 2022
96cada9
Convert the `polyfillWrapFlushCallback` 'upgrade in define call order…
bicknellr Jan 28, 2022
1a7d021
Convert the `polyfillWrapFlushCallback` 'imperatively created before …
bicknellr Jan 28, 2022
ac2a23b
Convert custom element polyfill and HTML imports integration tests to…
bicknellr Jan 28, 2022
157bb5d
Convert native-shim tests to `@web/test-runner`.
bicknellr Jan 28, 2022
b6b5c6e
Convert the custom elements and template polyfills integration tests …
bicknellr Jan 28, 2022
8261e87
Install `@web/test-runner-saucelabs`.
bicknellr Jan 28, 2022
02151d5
Update `@types/express-serve-static-core` to prevent an error during …
bicknellr Jan 28, 2022
5461b39
Use `runTests` instead of manually triggering the test run.
bicknellr Mar 15, 2022
f54f8d7
Add a WTR config for Sauce Labs.
bicknellr Jan 28, 2022
5d02448
Initial work on a plugin to emulate polyserve's transforms.
bicknellr Apr 19, 2022
7dd430f
Install `core-js`.
bicknellr Apr 19, 2022
2011ac4
Install `@rollup/plugin-commonjs` and `@rollup/plugin-node-resolve`.
bicknellr Apr 19, 2022
9f4ea60
Create a bundle of polyfills necessary to use `@web/test-runner`.
bicknellr Apr 19, 2022
2cb8154
Install `whatwg-fetch`.
bicknellr Apr 20, 2022
0a0f794
Add the fetch polyfill to the environment bundle.
bicknellr Apr 20, 2022
43345a1
Remove the `scoped-custom-element-registry` polyfill tests from the S…
bicknellr Apr 20, 2022
2330f91
Add the environment bundle to all the `custom-elements` tests.
bicknellr Apr 20, 2022
7a9cdf4
The `native-shim.js` test file is now running in IE11. (...)
bicknellr Apr 25, 2022
1b1f3b3
Uninstall some unused dependencies.
bicknellr Apr 25, 2022
6e28d61
Merge branch 'wtr-custom-plugin' into convert-to-wtr
bicknellr Apr 25, 2022
0340772
Convert the rest of the tests to the two-bundle setup.
bicknellr Apr 25, 2022
863097a
Remove references to global `chai`.
bicknellr Apr 25, 2022
1bad414
Update the version of Node used in the test workflow.
bicknellr Apr 25, 2022
4e9b86a
Downgrade to Node 16 as some dependencies are not compatible with Nod…
bicknellr Apr 25, 2022
d939499
Run `@web/test-runner` tests on Sauce Labs.
bicknellr Apr 25, 2022
804295e
Always import the compiled `<template>` polyfill in the custom elemen…
bicknellr Apr 26, 2022
7bbb465
Implement `transformCacheKey` to avoid serving cached code to browser…
bicknellr Apr 26, 2022
e61a3af
Update `@web/test-runner` packages.
bicknellr Jun 13, 2022
4f47a02
Use older key names when configuring launchers for browsers that use …
bicknellr Jun 14, 2022
53e3a6f
Safari 11 needs JWP.
bicknellr Jun 14, 2022
55bebf1
Make the protocol used to control a browser in `BROWSERS` configurable.
bicknellr Jun 14, 2022
9178aca
Merge remote-tracking branch 'origin/master' into convert-to-wtr
bicknellr Jun 15, 2022
748c375
Move the tests back to their original locations.
bicknellr Jun 15, 2022
8653fc2
Fix the file extension of a test that wasn't being included.
bicknellr Jun 15, 2022
c5ea4db
Remove last `chai` reference.
bicknellr Jun 15, 2022
6e99507
Merge branch 'ce-test-extensions' into convert-to-wtr
bicknellr Jun 15, 2022
7f0b3b7
Skip tests properly so that the reported sum of passed, failed, and s…
bicknellr Jun 16, 2022
f6711b3
Remove the last reference to `WCT`.
bicknellr Jun 16, 2022
c259aa6
Move `@web/test-runner`-related dependencies into the packages with t…
bicknellr Jun 17, 2022
5d7b94b
Move `@web/test-runner` config into packages with tests. Combine WTR/…
bicknellr Jun 17, 2022
f27b48f
Merge branch 'move-wtr-to-packages' into convert-to-wtr
bicknellr Jun 17, 2022
b6ad8f5
Move `browser-capabilities` and `polymer-build` into `packages/tests`.
bicknellr Jun 17, 2022
1244b98
Merge remote-tracking branch 'origin/master' into convert-to-wtr
bicknellr Jun 21, 2022
844a00d
Include `@webcomponents/scoped-custom-element-registry` in test scrip…
bicknellr Jun 21, 2022
0cf835f
Force WCT's 'root' config option to be automatically assigned based o…
bicknellr Jun 22, 2022
5f8516b
Remove WebKit from local browser list for GitHub test workflows.
bicknellr Jun 22, 2022
8da8d78
This error text is not the same across browsers.
bicknellr Jun 22, 2022
da7954e
Skip a couple tests that fail in Chrome 41.
bicknellr Jun 23, 2022
9db4b3f
Track exit codes to avoid WCT failures blocking WTR.
bicknellr Jun 23, 2022
d856bc6
Add a comment about why `browsers` in the WTR config groups are getters.
bicknellr Jun 23, 2022
2ca622d
Add a readme that explains the two entrypoints for the test environme…
bicknellr Jun 25, 2022
dd3304b
Always include the compilation plugin. WTR doesn't seem to use the on…
bicknellr Jun 28, 2022
b05baa7
Create a single entrypoint for the test environment.
bicknellr Jun 28, 2022
3dbbdf9
Move WTR concurrency config out of `groups` field. (...)
bicknellr Jun 28, 2022
50fdd5d
Move test environment docs into the new, single `environment.js` entr…
bicknellr Jun 28, 2022
c22efd2
Refactor the test environment bundle and simplify the docs.
bicknellr Jun 28, 2022
c03e32c
Add a note about why Chai must be bundled despite having a module ent…
bicknellr Jun 28, 2022
ec79bd9
Extract a function that generates the options for `polymer-build`'s t…
bicknellr Jun 28, 2022
a766555
Remove Rollup options that are unnecessary now that `@web/test-runner…
bicknellr Jun 28, 2022
581e510
Revert a change to a test that isn't intended to be fixed in this PR.
bicknellr Jun 28, 2022
6a4f673
Make the tests use at least `@web/test-runner-webdriver@0.5.1`.
bicknellr Jul 19, 2022
727c1f8
`tests`: Remove transitive dependency on `@web/test-runner-webdriver`…
bicknellr Aug 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ packages/shadycss/src/interface.*
packages/shadycss/.tsbuildinfo

# tests package
packages/tests/chai-bundle.js
packages/tests/core-js_url-bundle.js
packages/tests/shadycss/module/generated/

# webcomponentsjs package
Expand Down
35 changes: 7 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: NPM install
run: npm ci
Expand All @@ -21,14 +21,14 @@ jobs:
- name: Check formatting
run: npm run format && git diff --exit-code

wct-local:
local:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: NPM install
run: npm ci
Expand All @@ -39,31 +39,10 @@ jobs:
- name: Build
run: npm run build

- name: WCT local (Chrome/Firefox)
- name: Test
run: npm test

wtr-local:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14

- name: NPM install
run: npm ci

- name: Lerna bootstrap
run: npm run bootstrap

- name: Build
run: npm run build

- name: WTR local (Chrome/Firefox)
run: BROWSERS=chromium,firefox npm run test:wtr

wct-sauce:
sauce:
# Skip if this is from a forked repository because we can't access Sauce
# secrets.
if: github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id
Expand All @@ -74,7 +53,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: NPM install
run: npm ci
Expand All @@ -85,7 +64,7 @@ jobs:
- name: Build
run: npm run build

- name: WCT sauce (Safari/Edge/IE11/Chrome 41)
- name: Test
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ packages/shadycss/src/interface.*
packages/shadycss/.tsbuildinfo

# tests package
packages/tests/chai-bundle.js
packages/tests/core-js_url-bundle.js
packages/tests/shadycss/module/generated/

# webcomponentsjs package
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ packages/shadycss/src/interface.*
packages/shadycss/.tsbuildinfo

# tests package
packages/tests/chai-bundle.js
packages/tests/core-js_url-bundle.js
packages/tests/shadycss/module/generated/

# webcomponentsjs package
Expand Down
Loading