Commit Graph

292 Commits (t3chguy/playwright-homeservers)

Author SHA1 Message Date
Michael Telatynski 4b79bb6b18
Merge branch 't3chguy/sentinels' of https://github.com/vector-im/element-web into t3chguy/playwright-homeservers 2025-01-08 17:49:01 +00:00
R Midhun Suresh ebef0d353e
Implement new memberlist design with MVVM architecture (#28874)
* Add new e2e icon for the member tile

* Add new presence icon for member tile

* Implement new member tile

* Implement memberlist view model

* Implement new memberlist header view

* Support the new memberlist in Diasambiguated profile

1. Use MemberInfo instead of RoomMember
2. CSS changes to reflect the new design

* Implement new memberlist view

* Add and use a new overflow component

We used the EntityTile component as a pretend overflow tile in some
places. This new lighter component is added so  that we can remove the
complex EntityTile component.

* Remove old code

* Add/remove css files from _components.pcss

* Increase minimum width as per design

* Actually use the new memberlist view

* Fix broken jest tests

* Add jest tests

* Playwright: Make it possible to disable presence

* Add playwright tests

* Fix lint error

* Undo translation changes that must be done via localazy

* Update license header

* Use waitFor instead of setTimeout

* Remove comment

* Switch over from template to container hs

* Revert unintended change

* Move config to top level
2025-01-08 17:15:06 +00:00
Michael Telatynski 9f5c32a8e8
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 16:18:28 +00:00
Michael Telatynski f1899b9eb1
Specify Synapse ui_auth.session_timeout only on tests which require it (#28939)
* Specify Synapse ui_auth.session_timeout only on tests which require it

As Dendrite lacks this configuration option

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

* Iterate

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 15:53:19 +00:00
Michael Telatynski c890dfcc72
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 15:52:55 +00:00
Michael Telatynski dc08e0245f
Merge branch 't3chguy/playwright-uia-timeout' of https://github.com/vector-im/element-web into t3chguy/playwright-homeservers 2025-01-08 15:05:31 +00:00
Michael Telatynski ca38b0ff78
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 14:25:48 +00:00
Michael Telatynski b10fa4e71e
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/playwright-homeservers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

# Conflicts:
#	.github/workflows/end-to-end-tests.yaml
#	playwright/e2e/crypto/backups.spec.ts
#	playwright/e2e/login/login-consent.spec.ts
#	playwright/e2e/login/soft_logout.spec.ts
#	playwright/e2e/oidc/oidc-native.spec.ts
#	playwright/e2e/register/register.spec.ts
#	playwright/e2e/spaces/threads-activity-centre/threadsActivityCentre.spec.ts
#	playwright/element-web-test.ts
#	playwright/plugins/homeserver/dendrite/index.ts
#	playwright/plugins/homeserver/synapse/consentHomeserver.ts
#	playwright/plugins/homeserver/synapse/emailHomeserver.ts
#	playwright/plugins/homeserver/synapse/legacyOAuthHomeserver.ts
#	playwright/plugins/homeserver/synapse/masHomeserver.ts
#	playwright/services.ts
#	playwright/testcontainers/synapse.ts
2025-01-08 13:57:31 +00:00
Michael Telatynski 50ac509a01
Use homeserver in a worker-scoped fixture (#28848)
* Use homeserver in a worker-scoped fixture

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>

* Switch to TestContainers for manging services in Playwright

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

* Iterate

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

* Flip fixture dependency order

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

* Remove mas dep

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 matrix-authentication-service in Playwright tests

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

* delint

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

* Fix SMTP port

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

* Iterate

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

* Comments

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

* Strip ansi from playwright logs to make them more readable

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

* Actually do the update

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

* Iterate

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

* Remove access to homeserver.config.baseUrl field in favour of homeserver.baseUrl

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

* Use sane default_server_config and specify server.invalid in the specific tests which demand it

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

* Fix mas run

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

* break cycle

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

* Iterate

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

* typo

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>

* prettier

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

* Wire up basics of dendriteHomeserver

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>

* Fix types

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>

* Discard changes to playwright/e2e/settings/device-management.spec.ts

* Iterate

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

* Fix bad merge

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 12:48:48 +00:00
Michael Telatynski 13527e735b
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 11:02:05 +00:00
Michael Telatynski 5caad70191
Stabilise sliding sync playwright test (#28879)
* Stabilise sliding sync playwright test

There's no guarantee that the unsubscription & subscription occur in the same request given the add/remove APIs are async

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

* Stabilise more sliding sync tests

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-08 10:52:01 +00:00
Michael Telatynski f75d1f5a5e
Switch to TestContainers for manging services in Playwright (#28860)
* Switch to TestContainers for manging services in Playwright

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

* Iterate

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

* Flip fixture dependency order

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

* Remove mas dep

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 matrix-authentication-service in Playwright tests

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

* delint

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

* Fix SMTP port

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

* Iterate

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

* Comments

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

* Strip ansi from playwright logs to make them more readable

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

* Actually do the update

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

* Iterate

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

* Remove access to homeserver.config.baseUrl field in favour of homeserver.baseUrl

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

* Use sane default_server_config and specify server.invalid in the specific tests which demand it

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

* Fix mas run

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

* break cycle

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

* Iterate

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

* typo

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>

* prettier

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

* Wire up basics of dendriteHomeserver

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 18:11:44 +00:00
Michael Telatynski af8935e159
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 18:00:31 +00:00
Michael Telatynski 048563a0a4
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 17:22:48 +00:00
Michael Telatynski 757a22a829
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 15:35:27 +00:00
Michael Telatynski 18a3e720aa
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 15:08:12 +00:00
Michael Telatynski 5e304beedd
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 14:41:47 +00:00
Michael Telatynski 4142c809a3
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 13:38:50 +00:00
Michael Telatynski e4cff3fba0
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 11:18:26 +00:00
Michael Telatynski 7d8f00f404
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 10:46:40 +00:00
Michael Telatynski df510dc74b
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 09:55:30 +00:00
Michael Telatynski a73faffe37
Prepare for switch to testcontainers in playwright (#28880)
* Remove access to homeserver.config.baseUrl field in favour of homeserver.baseUrl

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

* Use sane default_server_config and specify server.invalid in the specific tests which demand it

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

* break cycle

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

* Iterate

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

* typo

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>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-07 09:21:07 +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 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 b16088d098
Update matrix-authentication-service in Playwright tests (#28876)
* Update matrix-authentication-service in Playwright tests

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

* delint

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

* Iterate

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

* Actually do the update

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

* Fix mas run

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 17:24:11 +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 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 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 a4ba79ae69
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-01-06 08:58:11 +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