Commit Graph

483 Commits (df510dc74b01470756c43476019e9fb26a6c3f97)

Author SHA1 Message Date
Michael Telatynski df510dc74b
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 09:55:30 +00:00
Michael Telatynski 40d755af6c
Run Playwright tests against Dendrite & Pinecone periodically
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 09:09:53 +00:00
Michael Telatynski 0410574b20
Wire up basics of dendriteHomeserver
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 18:18:13 +00:00
Michael Telatynski fd447324b5
Merge branch 't3chguy/prepare-playwright-testcontainers' of https://github.com/vector-im/element-web into t3chguy/playwright-testcontainers 2025-01-06 17:38:18 +00:00
Michael Telatynski 7ceced6d16
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/prepare-playwright-testcontainers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 17:37:51 +00:00
Michael Telatynski ea6132084e
prettier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 17:32:40 +00:00
Michael Telatynski 9ba9f1cd80
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 17:30:06 +00:00
Michael Telatynski 69723c5b47
Merge branch 't3chguy/prepare-playwright-testcontainers' of https://github.com/vector-im/element-web into t3chguy/playwright-testcontainers
# Conflicts:
#	playwright/e2e/register/register.spec.ts
2025-01-06 17:29:29 +00:00
Michael Telatynski ac53bab10c
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/playwright-testcontainers
# Conflicts:
#	playwright/e2e/crypto/backups.spec.ts
2025-01-06 17:29:10 +00:00
Michael Telatynski 27652d0620
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 17:23:35 +00:00
Michael Telatynski 1368dc0564
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 16:51:26 +00:00
David Baker 29624f7bcb
Add a playwright test for backup reset / deleted (#28858)
* Add a playwright test for backup reset / deleted

A slightly tricky one to test but an important case that people can hit,
and one that otherwise wouldn't get hit a lot during normal usage, so I
think probably quite a useful test to have. Mostly though, I'm about
to change this to a toast, so I'd like a test to assert that it still works.

* Return directly

Co-authored-by: Florian Duros <florianduros@element.io>

* Fix tsdco

---------

Co-authored-by: Florian Duros <florianduros@element.io>
2025-01-06 16:32:10 +00:00
Michael Telatynski b2fb036f62
typo
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 16:06:02 +00:00
Michael Telatynski f6ea850027
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 16:05:47 +00:00
Michael Telatynski e7b62c3b46
Merge branch 't3chguy/prepare-playwright-testcontainers' of https://github.com/vector-im/element-web into t3chguy/playwright-testcontainers
# Conflicts:
#	playwright/e2e/app-loading/guest-registration.spec.ts
#	playwright/e2e/crypto/dehydration.spec.ts
#	playwright/e2e/crypto/utils.ts
#	playwright/e2e/forgot-password/forgot-password.spec.ts
#	playwright/e2e/login/soft_logout.spec.ts
#	playwright/e2e/oidc/index.ts
#	playwright/e2e/register/email.spec.ts
#	playwright/plugins/homeserver/index.ts
#	playwright/plugins/homeserver/synapse/index.ts
2025-01-06 15:59:28 +00:00
Michael Telatynski 08bb07e680
break cycle
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 15:47:43 +00:00
Michael Telatynski d80ad9d358
Use sane default_server_config and specify server.invalid in the specific tests which demand it
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 15:40:19 +00:00
Michael Telatynski 8e1372b0b4
Remove access to homeserver.config.baseUrl field in favour of homeserver.baseUrl
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 15:29:52 +00:00
Michael Telatynski 63e855e0c4
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 15:25:40 +00:00
Michael Telatynski edefe02174
Strip ansi from playwright logs to make them more readable
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 14:53:20 +00:00
Michael Telatynski eaca3f83d6
Comments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 14:45:15 +00:00
Michael Telatynski d8f6c12c3d
Fix some flaky playwright tests (#28855)
* Fix some flaky playwright tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix more flaky tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Reuse existing assertion

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 13:31:33 +00:00
Michael Telatynski f1c392dd08
Fix SMTP port
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 13:22:44 +00:00
Michael Telatynski 4fce0013c8
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 13:06:03 +00:00
Michael Telatynski 99af4a49a7
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/playwright-testcontainers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

# Conflicts:
#	playwright/plugins/docker/index.ts
#	playwright/plugins/homeserver/synapse/index.ts
#	playwright/plugins/mailhog/index.ts
#	playwright/plugins/matrix-authentication-service/index.ts
#	playwright/plugins/postgres/index.ts
#	playwright/plugins/sliding-sync-proxy/index.ts
2025-01-06 11:57:59 +00:00
Michael Telatynski 75ba4f2b2a
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 11:51:37 +00:00
David Langley 69ee8fd96a
Change License: AGPL + Element Commercial (#28856)
* Add commercial licence and update config files

* Update license in headers

* Revert "Update license in headers"

This reverts commit 7ed7949485.

* Update only spdx id

* Remove LicenseRef- from package.json

LicenseRef- no longer allowed in npm v3 package.json
This fixes the warning in the logs and failing build check.
2025-01-06 11:18:54 +00:00
Michael Telatynski f176473212
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 10:45:52 +00:00
Michael Telatynski 9c52986d76
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 10:07:34 +00:00
Michael Telatynski 94697fe755
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 09:34:31 +00:00
Michael Telatynski a4ba79ae69
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 08:58:11 +00:00
Michael Telatynski c0337f141b
Remove mas dep
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 08:34:19 +00:00
Michael Telatynski 7ba1d3e14c
Flip fixture dependency order
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-03 21:10:36 +00:00
Michael Telatynski 87a0acb53a
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-03 18:54:31 +00:00
Michael Telatynski 00b25f5e02
Switch to TestContainers for manging services in Playwright
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-03 18:48:25 +00:00
Michael Telatynski bd3e93e8dd
Fix and stabilise sliding sync playwright tests (#28809)
* Fix and stabilise sliding sync playwright tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Revert test enablement

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Debug

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Unskip now fixed tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-02 20:20:13 +00:00
Michael Telatynski 0555701829
Stabilise playwright tests using createRoom util (#28802)
* Stabilise playwright tests using createRoom util

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Pass around RoomRefs to avoid needing to cross the bridge to resolve a room to its ID

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-02 15:24:09 +00:00
ElementRobot e98529824e
[create-pull-request] automated change (#28813)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-12-24 06:17:08 +00:00
ElementRobot 9d5141cfaa
[create-pull-request] automated change (#28791)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-12-23 20:25:18 +00:00
Michael Telatynski 4e1bd69e4d
Remove stale OIDC aware docs and tests (#28805)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-23 18:43:50 +00:00
David Baker 7e1927d388
Playwright: wait for the network listener on the postgres db (#28808)
As commented. This was flaking when I was debugging it locally
(MAS was failing to start because the database wasn't ready).
2024-12-23 18:06:37 +00:00
ElementRobot b07d10cb23
[create-pull-request] automated change (#28776)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-12-20 11:58:40 +00:00
Michael Telatynski 5448de5dd6
Run Playwright tests on Firefox & "Safari" nightly (#28757)
* Run Playwright tests on Firefox

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update playwright.config.ts

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update end-to-end-tests.yaml

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Finalise

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Documentation

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* typo

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-19 23:42:09 +00:00
Michael Telatynski be181d2c79
Use mapped types around account data events (#28752)
* Use mapped types around account data events

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-19 22:53:51 +00:00
Michael Telatynski baaed75c4b
Clean up Playwright test code related to legacy crypto (#28770)
* Clean up Playwright test code related to legacy crypto

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Tidy further

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-19 13:36:09 +00:00
ElementRobot 2c4a079153
[create-pull-request] automated change (#28772)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-12-19 09:26:31 +00:00
renovate[bot] 9099338af8
Update dependency typescript to v5.7.2 (#28565)
* Update dependency typescript to v5.7.2

* Fix types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-19 00:09:12 +00:00
Michael Telatynski 95c879c9e5
Move room header info button to right-most position (#28754)
* Move room header info button to right-most position

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-18 09:55:59 +00:00
ElementRobot c2799a1812
[create-pull-request] automated change (#28761)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-12-18 06:16:59 +00:00
David Baker 980b922348
Enable key backup by default (#28691)
* Factor out crypto setup process into a store

To make components pure and avoid react 18 dev mode problems due
to components making requests when mounted.

* fix test

* test for the store

* Add comment

* Enable key backup by default

When we set up cross signing, so the key backup key will be stored locally along with the cross signing keys until the user sets up recovery (4s). This will mean that a user can restore their backup if they log in on a new device as long as they verify with the one they registered on.

Replaces https://github.com/element-hq/element-web/pull/28267

* Fix test

* Prompt user to set up 4S on logout

* Fix test

* Add playwright test for key backup by default

* Fix imports

* This isn't unexpected anymore

* Update doc

* Fix docs and function name on renderSetupBackupDialog()

* Use checkKeyBackupAndEnable

* Docs for setup encryption toast

* Also test the toast appears

* Update mock for the method we use now

* Okay fine I guess we need both

* Swap here too

* Fix comment & doc comments
2024-12-17 14:50:48 +00:00