element-web/playwright
Travis Ralston d25d529e86
Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414)
* Send user credentials to service worker for MSC3916 authentication

* appease linter

* Add initial test

The test fails, seemingly because the service worker isn't being installed or because the network mock can't reach that far.

* Remove unsafe access token code

* Split out base IDB operations to avoid importing `document` in serviceworkers

* Use safe crypto access for service workers

* Fix tests/unsafe access

* Remove backwards compatibility layer & appease linter

* Add docs

* Fix tests

* Appease the linter

* Iterate tests

* Factor out pickle key handling for service workers

* Enable everything we can about service workers

* Appease the linter

* Add docs

* Rename win32 image to linux in hopes of it just working

* Use actual image

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Improve documentation

* Document `??` not working

* Try to appease the tests

* Add some notes

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-02 22:19:55 +00:00
..
e2e Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
pages playwright: Document some of the fixtures (#12388) 2024-04-03 10:02:41 +00:00
plugins Add support for device dehydration v2 (#12316) 2024-04-15 15:47:15 +00:00
sample-files Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
snapshots Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
.gitignore Add Playwright tests for OIDC-aware & OIDC-native (#12252) 2024-02-21 10:43:47 +00:00
docker-entrypoint.sh Allow screenshot update docker to run multiple test files (#12291) 2024-02-28 10:04:25 +00:00
Dockerfile Update all non-major dependencies (#12423) 2024-04-16 14:47:44 +00:00
element-web-test.ts Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
flaky-reporter.ts Add custom reporter to auto-report flaky Playwright tests (#12290) 2024-02-28 13:02:09 +00:00
global.d.ts Update dependency typescript to v5.4.2 (#12324) 2024-03-19 17:55:06 +00:00
tsconfig.json Extract types for re-use in matrix-js-sdk.d.ts (#12350) 2024-03-19 10:19:38 +00:00