Commit Graph

47620 Commits (34559d2a897fbeb06f890d2bf52590253a9216be)

Author SHA1 Message Date
Michael Telatynski d06fc7d623
Move two runners from Cypress to Playwright to rebalance runtime (#12006) 2023-12-06 15:13:03 +00:00
Richard van der Hoff 88de99733c
Keep more recent rageshake logs (#12003)
Currently, the rageshake store keeps up to 5M of logs. In a busy session for a power-user, that can be quite a short time.

This PR changes the store so that we will keep up to 100M, if they are less than 24H old. (Any logs older than 24H, of more than 5M, will continue to be dropped.)

Fixes vector-im/element-web#26532.
2023-12-06 15:04:24 +00:00
Michael Telatynski d5abde0e6e
Improve usage of Playwright and documentation (#11999)
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-12-06 10:13:48 +00:00
Florian Duros 36c6afd53f
Enable skipped test in `editing-messages.spec.ts` (#12000) 2023-12-06 09:50:37 +00:00
Michael Telatynski fb1a97be32
Migrate room-directory.spec.ts from Cypress to Playwright (#11997)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-05 15:20:20 +00:00
RiotRobot f48f400361 Reset matrix-js-sdk back to develop branch 2023-12-05 13:57:02 +00:00
RiotRobot 4792a56d34 Resetting package fields for development 2023-12-05 13:56:53 +00:00
RiotRobot 9e794eac8a Merge branch 'master' into develop 2023-12-05 13:56:52 +00:00
RiotRobot d03d47504e v3.86.0 2023-12-05 13:55:21 +00:00
RiotRobot 8960f50ba1 Upgrade matrix-js-sdk to 30.2.0 2023-12-05 13:55:20 +00:00
Michael Telatynski 99b580d501
Migrate read-receipts.spec.ts from Cypress to Playwright (#11995)
* Migrate read-receipts.spec.ts from Cypress to Playwright

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

* Update client.ts

* Serialise test message sending

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-05 13:24:10 +00:00
Richard van der Hoff 447d2ce415
Re-enable previously-flaky cypress test (#11998)
This should now be fixed, thanks to
https://github.com/matrix-org/matrix-js-sdk/pull/3932.
2023-12-05 12:37:52 +00:00
Michael Telatynski b691be3bee
Migrate most read-receipts tests from Cypress to Playwright (#11994)
* Migrate most read-receipts tests from Cypress to Playwright

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

* Disable failing test

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>
2023-12-05 10:37:23 +00:00
Richard van der Hoff 236ea44cc8
Fix up and enable a cypress test that uses key backup (#11958)
* Fix up and enable a cypress test that uses key backup

* fix imports
2023-12-04 17:13:49 +00:00
Michael Telatynski 85c0a95fdf
Hide react button in search results as it doesn't work properly (#11996)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-04 17:06:22 +00:00
Michael Telatynski 09fddc0676
Update Sibz/github-status-action to use node16 to silence warning (#11955) 2023-12-04 15:42:54 +00:00
Michael Telatynski 7638790095
Migrate pills-click-in-app.spec.ts from Cypress to Playwright (#11984)
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
2023-12-04 13:41:20 +00:00
Michael Telatynski b02ff16a21
Migrate room/* from Cypress to Playwright (#11985)
* Remove old percy media query CSS

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

* Stabilise soft_logout.spec.ts

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

* Update screenshots using `toMatchScreenshot` assertion with CSS overrides

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

* Fix accidentally commented test

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

* Migrate room/* from Cypress to Playwright

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

* delint

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

* Add screenshots

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

* Update labs.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-04 12:01:06 +00:00
Michael Telatynski eb6101cc1b
Migrate spaces.spec.ts from Cypress to Playwright (#11986)
* Remove old percy media query CSS

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

* Stabilise soft_logout.spec.ts

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

* Update screenshots using `toMatchScreenshot` assertion with CSS overrides

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

* Fix accidentally commented test

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

* Migrate spaces.spec.ts from Cypress to Playwright

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

* Delint

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

* Add screenshots

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-04 11:56:48 +00:00
Michael Telatynski d7c682d05e
Update end-to-end-tests.yaml (#11991) 2023-12-04 11:32:39 +00:00
Michael Telatynski e180ca841b
Improve stability of Playwright screenshot tests (#11983) 2023-12-04 11:02:48 +00:00
maheichyk 74ea0d134e
Fix rejoin of knock rooms (#11980)
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-12-04 10:20:24 +00:00
ElementRobot e2bc437774
[create-pull-request] automated change (#11987)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2023-12-04 06:24:20 +00:00
Michael Telatynski 446400b6b6
Migrate right-panel/* from Cypress to Playwright (#11954)
* Migrate file-panel.spec.ts from Cypress to Playwright

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

* Migrate right-panel.spec.ts from Cypress to Playwright

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

* Migrate notification-panel.spec.ts from Cypress to Playwright

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

* Update screenshots

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

* Update screenshots

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

* Fix test flakes

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

* delint

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

* Update screenshot

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

* Fix tests

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

* Update screenshots

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

* Try stabilise test

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

* sleep

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

* Handle both cases

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

* Fix assertion

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

* Flip

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

* Test

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

* Iterate

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

* Test

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-01 12:24:49 +00:00
Richard van der Hoff 1f06d97ffe
Attempt to deflake a read-receipts test (#11981)
* Attempt to deflake a read-receipts test

Hopefully, this will fix https://github.com/vector-im/element-web/issues/26679

(I think that the fourth message was arriving *after* the room was marked as
read, meaning that we ended up with two unread messages rather than one.)

* Update cypress/e2e/read-receipts/new-messages.spec.ts

* prettier
2023-12-01 11:11:14 +00:00
Michael Telatynski 50c58ec693
Disable sliding sync proxy check for native support mode (#11936)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-01 11:04:14 +00:00
Richard van der Hoff 328de4e9c8
`shieldStatusForRoom`: guard against client shutdown (#11957)
If `shieldStatusForRoom` races against a logout operation, then some of the
(many) crypto operations that it does can fail. Catch the error and handle it
gracefully.
2023-12-01 10:59:18 +00:00
Andy Balaam 926907309a
Stop displaying verification done messages in timeline (#11932)
* Stop displaying verification done messages in timeline

* i18n fixes
2023-12-01 09:12:38 +00:00
ElementRobot f07a8800d3
[create-pull-request] automated change (#11982)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2023-12-01 06:24:02 +00:00
Andy Balaam f63160f384
Simplify display of verification requests in timeline (#11931)
* Simplify display of verification requests in timeline

* Comment explaining the purpose of MKeyVerificationRequest
2023-11-30 17:41:47 +00:00
Michael Telatynski 5a4355059d
Retry flaky tests in Playwright twice (half Cypress) (#11978)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-30 12:18:35 +00:00
Michael Telatynski 79daa1a63c
Migrate remaining editing.spec.ts from Cypress to Playwright (#11976)
* Migrate user-view.spec.ts from Cypress to Playwright

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

* Add bot support & update screenshot

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

* Add screenshot

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

* Use JSHandle

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

* Remove stale snapshots

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

* Migrate remaining editing.spec.ts from Cypress to Playwright

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

* yay

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

* Fix tests

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

* Fix tests

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-30 10:18:18 +00:00
Germain 07b7ee6111
Deprecate lab experiment 'feature_state_counters' (#11343)
* Deprecate lab experiment 'feature_state_counters'

* i18n

* Regenerate strings

---------

Co-authored-by: Johannes Marbach <johannesm@element.io>
2023-11-30 08:19:16 +00:00
Michael Telatynski 890958ef58
Migrate complete-security.spec.ts from Cypress to Playwright (#11952)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 22:46:51 +00:00
Timo 0b8fdb30e1
Remove limit condition. (#11960)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-11-29 19:49:33 +00:00
Richard van der Hoff 27b138b52d
Enable disabled cypress test (#11979)
I can't for the life of me make this fail locally, so let's have a go on CI.
2023-11-29 17:21:11 +00:00
Michael Telatynski e897d7360d
Migrate user-view.spec.ts from Cypress to Playwright (#11944)
* Migrate user-view.spec.ts from Cypress to Playwright

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

* Add bot support & update screenshot

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

* Add screenshot

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

* Use JSHandle

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

* Remove stale snapshots

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

* Update element-web-test.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 16:39:27 +00:00
Michael Telatynski 2160f29473
Fix invisible avatar on home page (#11977)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 16:18:29 +00:00
Michael Telatynski 2dbf6a8767
Playwright - retain video on failure (#11971)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 16:01:41 +00:00
Michael Telatynski 1b3f473c10
Migrate settings/* from Cypress to Playwright (#11949)
* Migrate location.spec.ts from Cypress to Playwright

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

* Migrate location.spec.ts from Cypress to Playwright

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

* Migrate appearance-user-settings-tab.spec.ts from Cypress to Playwright

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

* Migrate device-management.spec.ts from Cypress to Playwright

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

* Migrate general-room-settings-tab.spec.ts from Cypress to Playwright

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

* Migrate general-user-settings-tab.spec.ts from Cypress to Playwright

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

* Migrate preferences-user-settings-tab.spec.ts from Cypress to Playwright

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

* Migrate security-user-settings-tab.spec.ts from Cypress to Playwright

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

* Add screenshots

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

* Add screenshot

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

* Deflake

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

* Update screenshots

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

* Update screenshots

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

* Move settings into subclass

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 13:50:13 +00:00
Andy Balaam 8b7f49e74e
Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903)
* Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk

* Remove unit tests that rely on receipt timestamps

Previously, if we found a receipt for an unknown event, we would use the
receipt timestamp and declare all events before that time to be read.
Now, we ignore such "dangling" receipts until we find the event they
refer to.

This new behaviour is more correct, but does lead to more messages being
considered unread.

This commit deletes tests that checked for the old behaviour.

* Check for a missing thread in determineUnreadState

* Fix incorrect way to find room timeline

* More realistic test setup to support new receipt code

* Update snapshot to expect a room to be unread when there are no receipts

* Formatting fixes

* Update snapshot to show menu and notif button

* Disable some flaky tests

* Disable some flaky tests

* Fix test to make a threaded receipt for an event that is actually in the thread

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2023-11-29 13:36:52 +00:00
Michael Telatynski e207798a8f
Allow for running playwright tests upstream (#11959)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-29 11:42:00 +00:00
ElementRobot 30c37de29d
[create-pull-request] automated change (#11974)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2023-11-29 11:18:34 +00:00
Andy Balaam c5377bc228
Prevent flaky Jest test by pre-loading WASM (#11975)
Fixes https://github.com/vector-im/element-web/issues/26650
2023-11-29 10:11:53 +00:00
renovate[bot] 11695d3227
Update actions/setup-node action to v4 (#11969)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 09:07:26 +00:00
renovate[bot] b4988de04b
Update definitelyTyped (#11963)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 08:36:48 +00:00
Kerry 1ffa1c9c18
Fix: Space scope header overflow (#11933)
* fix spacing for scope header

* extract scope header into component, apply line clamp

* update ThirdPartyMemberInfo styles

* pass onClose to ThirdPartyRoomMemberInfo

* rethemendex

* add View3pidInvite to actions enum, replace uses

* extract out action handler

* push card instead, test

* comment

* reinstate data-testid

* fix typo in styles
2023-11-29 08:25:34 +00:00
Johannes Marbach 4d0a34bb26
Merge pull request #11973 from matrix-org/midhun/fix-cypress-workflow 2023-11-29 08:04:04 +01:00
R Midhun Suresh ff98d5bed0
Allow passing knapsack token as secret in workflow 2023-11-29 11:09:00 +05:30
renovate[bot] 8dcddb50d5
Update dependency @types/jest to v29.5.10 (#11964)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 21:46:52 +00:00