element-web/test/utils
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
..
__snapshots__
beacon
crypto
device
dm
exportUtils
localRoom
location
media
oidc
permalinks
room
validate
AnimationUtils-test.ts
AutoDiscoveryUtils-test.tsx
DMRoomMap-test.ts
DateUtils-test.ts
ErrorUtils-test.ts
EventRenderingUtils-test.ts
EventUtils-test.ts
Feedback-test.ts
FixedRollingArray-test.ts
FormattingUtils-test.tsx
LruCache-test.ts
MegolmExportEncryption-test.ts
MessageDiffUtils-test.tsx
MultiInviter-test.ts
PhasedRolloutFeature-test.ts
SearchInput-test.ts
SessionLock-test.ts
ShieldUtils-test.ts
Singleflight-test.ts
SnakedObject-test.ts
StorageAccess-test.ts
StorageManager-test.ts
UrlUtils-test.ts
WidgetUtils-test.ts
arrays-test.ts
colour-test.ts
connection-test.ts
createVoiceMessageContent-test.ts
direct-messages-test.ts
enums-test.ts
export-test.tsx
generate-megolm-test-vectors.py
i18n-helpers-test.ts
iterables-test.ts
leave-behaviour-test.ts
local-room-test.ts
maps-test.ts
membership-test.ts
notifications-test.ts
numbers-test.ts
objects-test.ts
pillify-test.tsx
rooms-test.ts
sets-test.ts
stringOrderField-test.ts
threepids-test.ts
tooltipify-test.tsx