Commit Graph

47370 Commits (35e99d69d30d9df6d1b93a496bf57b74837490fd)

Author SHA1 Message Date
R Midhun Suresh d1562befc4
Convert spotlight tests to playwright (#12033)
* Convert tests

* Use existing code

* Remove code from settings

* Change names

* Change comment

* Update comment
2023-12-18 06:04:15 +00:00
renovate[bot] 7508e62eda
Update dependency @sentry/browser to v7.87.0 (#12044)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-16 16:39:29 +00:00
R Midhun Suresh 7b3d5b5f21
Playwright: Convert sliding-sync test to playwright (#11989)
* Add method to send text message

* Add dockerUrl to HomeServerConfig

* Implement sliding sync proxy

* Convert tests

* Reload page after applying labs feature

* Remove converted files

* Remove timeout

* Remove sliding-sync

* Remove proxy import

* Remove reference to proxy

* wait for load

* Update date

* Convert enableLabsFeature to separate fixture

* Enable feature in fixture

* Skip over config and just write to local-storage

* Rename fixture

* Fix room header test

* Use type inference

* Override config instead of setting localstorage

* Set default language

* Always add labs feature

* Put this one test into a separate describe block

* Move labs lag within describe block
2023-12-16 10:01:26 +00:00
Richard van der Hoff de5931d5a8
Element-R: fix repeated requests to enter 4S key during cross-signing reset (#12059)
* Remove redundant `forceReset` parameter

This was always true, so let's get rid of it.

Also some function renames.

* Factor out new `withSecretStorageKeyCache` helper

... so that we can use the cache without the whole of `accessSecretStorage`.

* Cache secret storage key during cross-signing reset

* Playwright test for resetting cross-signing

* CrossSigningPanel: Silence annoying react warnings

React complains if we don't include an explicit `tbody`.

* Simple unit test of reset button
2023-12-15 14:59:36 +00:00
R Midhun Suresh a7c039d314
Fix playwright screenshot update command on linux (#12060)
* Change permission for synapse to work

* Upgrade playwright
2023-12-15 14:30:59 +00:00
Michael Telatynski 9d93a3f54d
Retry jest tests to avoid flakes slowing down PRs (#12051)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-15 13:11:57 +00:00
Hubert Chathi f0dd12dbc1
Log unhandled promise rejections in the rageshake (#12028) 2023-12-15 10:16:30 +00:00
ElementRobot 46e301f8f8
[create-pull-request] automated change (#12058)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2023-12-15 06:23:40 +00:00
Michael Telatynski f8d87f0ddc
Prevent Cypress typechecking react-sdk components without strict mode (#12053)
* Prevent Cypress typechecking react-sdk components without strict mode

This prevented us from switching to `forwardRef` in a bunch of places
due to it behaving different with & without strict mode.

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

* Update global.d.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-14 17:55:57 +00:00
Michael Telatynski 088710811d
Migrate composer.spec.ts from Cypress to Playwright (#12024)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-14 13:49:51 +00:00
Michael Telatynski d5a211c774
Attach synapse logs to failed Playwright test runs (#12027)
* Attach synapse logs to failed Playwright test runs

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

* Update playwright/plugins/homeserver/index.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-14 13:49:35 +00:00
Anoop P 18f11b8024
Fix position of thumbnail in room timeline (#12016)
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2023-12-14 11:16:05 +00:00
renovate[bot] 6669cb70e4
Update dependency @vector-im/compound-web to v0.9.4 (#11891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-14 11:10:01 +00:00
Michael Telatynski 4f19356492
Migrate timeline.spec.ts from Cypress to Playwright (#12025)
* Migrate timeline.spec.ts from Cypress to Playwright

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

* Monospace font for timestamps

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

* More expects

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

* delint

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-13 14:59:08 +00:00
Michael Telatynski 8040ed92a9
Migrate integration-manager/* from Cypress to Playwright (#12031)
* Migrate send_event.spec.ts from Cypress to Playwright

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

* Migrate read_events.spec.ts from Cypress to Playwright

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

* Migrate kick.spec.ts from Cypress to Playwright

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

* Migrate get-openid-token.spec.ts from Cypress to Playwright

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

* Discard changes to playwright/pages/client.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-13 14:49:43 +00:00
renovate[bot] e3336aef29
Update dependency stylelint to v16 - abandoned (#12046)
* Update dependency stylelint to v16

* Bump stylelint-scss for compat

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>
2023-12-13 10:02:12 +00:00
renovate[bot] 0e06f38c1b
Update dawidd6/action-download-artifact digest to f29d1b6 (#12037)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-13 08:55:38 +00:00
ElementRobot dc134978fc
[create-pull-request] automated change (#12048)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2023-12-13 06:22:56 +00:00
renovate[bot] 0f6b2f72b1
Update all non-major dependencies (#12038)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 21:05:05 +00:00
renovate[bot] 7ea9da52a2
Update dependency stylelint-config-standard to v35 (#12047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 18:37:18 +00:00
renovate[bot] 6cf2c0d437
Update dependency typescript to v5.3.3 (#12043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 18:28:44 +00:00
renovate[bot] 436f730d2b
Update dependency @types/node to v16.18.68 (#12042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 18:28:38 +00:00
renovate[bot] 1f1d791270
Update dependency @types/jest to v29.5.11 (#12041)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 18:28:26 +00:00
renovate[bot] dac1121ea7
Update babel monorepo to v7.23.5 (#12039)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 18:28:15 +00:00
Michael Telatynski c9008152c5
Migrate widgets/* from Cypress to Playwright (#12032)
* Migrate send_event.spec.ts from Cypress to Playwright

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

* Migrate read_events.spec.ts from Cypress to Playwright

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

* Migrate kick.spec.ts from Cypress to Playwright

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

* Migrate get-openid-token.spec.ts from Cypress to Playwright

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

* Migrate layout.spec.ts from Cypress to Playwright

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

* Migrate events.spec.ts from Cypress to Playwright

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

* Migrate stickers.spec.ts from Cypress to Playwright

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

* Migrate widget-pip-close.spec.ts from Cypress to Playwright

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

* Fix types

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

* Add screenshot

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

* expect.poll to stabilise test

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-12 17:26:08 +00:00
RiotRobot 337603e09b v3.87.0-rc.0 2023-12-12 17:01:41 +00:00
RiotRobot 73f4702d18 Upgrade matrix-js-sdk to 30.3.0-rc.0 2023-12-12 17:01:39 +00:00
Michael Telatynski 99ca613818
Move 2 runners from Cypress to Playwright (#12034)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-12 16:51:54 +00:00
Michael Telatynski e92ca4fcd2
Migrate knock/* from Cypress to Playwright (#12030)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-12 14:08:36 +00:00
Florian Duros a806d71d45
Remove skipped for rust crypto in `high-level.spec.ts` (#12029) 2023-12-12 13:23:25 +00:00
Florian Duros 2002f3f627
Fix more tests in `redactions.spec.ts` (#12026) 2023-12-12 12:38:13 +00:00
Michael Telatynski 0d617dbbeb
Migrate presence.spec.ts from Cypress to Playwright (#12022)
* Fix bot MatrixClient being set up multiple times

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

* Migrate presence.spec.ts from Cypress to Playwright

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

* Apply suggestions from code review

Co-authored-by: R Midhun Suresh <hi@midhun.dev>

* Update presence.spec.ts

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
2023-12-12 10:00:47 +00:00
Michael Telatynski 99cb985d53
Migrate permalinks.spec.ts from Cypress to Playwright (#12004)
* Migrate permalinks.spec.ts from Cypress to Playwright

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

* Stabilise screenshots

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-12 09:56:55 +00:00
Michael Telatynski 5104d53ddf
Migrate remaining crypto tests from Cypress to Playwright (#12021)
* Fix bot MatrixClient being set up multiple times

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

* Migrate verification.spec.ts from Cypress to Playwright

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

* Migrate crypto.spec.ts from Cypress to Playwright

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

* delint

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

* Add screenshot

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

* Record trace on-first-retry

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

* Iterate

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

* Don't start client when not needed

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

* Add bot log prefixing

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

* Turns out we need these

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

* Fix crypto tests in rust crypto

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-12 08:55:29 +00:00
Florian Duros 0f42418b5c
Enable skipped tests in `redactions.spec.ts` (#12023) 2023-12-11 14:53:00 +00:00
Michael Telatynski 6199287fe7
Migrate audio-player.spec.ts from Cypress to Playwright (#12008)
* Migrate audio-player.spec.ts from Cypress to Playwright

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

* Stabilise screenshots

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

* Stabilise bot MXID length

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

* Stabilise test user MXID

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

* Stabilise timestamps

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

* Update screenshots

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

* Update element-web-test.ts

* Use deterministic monospace font

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-11 14:36:30 +00:00
Florian Duros f9b50938de
Enable skipped tests in `high-level.spec.ts` (#12017) 2023-12-11 10:11:26 +00:00
ElementRobot f848d99f2d
Localazy Download (#12014)
* [create-pull-request] automated change

* Update snapshots

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

* Update snapshots with deterministic language

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-09 18:38:01 +00:00
Richard van der Hoff db24a041aa
Fix the ordering in rageshakes (#12020)
* Fix the ordering in rageshakes

Fixes https://github.com/vector-im/element-web/issues/26715

* Update src/rageshake/rageshake.ts

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-08 22:03:23 +00:00
Florian Duros 75500b606e
Enable skipped tests in `reactions.spec.ts` (#12019) 2023-12-08 16:07:25 +00:00
Florian Duros d15065d05c
Enable & fix skipped tests in `new-messages.spec.ts` (#12013) 2023-12-08 12:38:39 +00:00
Valere 6360fe46f3
Fix bot logger (#12018) 2023-12-08 10:53:10 +00:00
Richard van der Hoff 9939c9d01d
Clean up rageshake store at startup (#12002) 2023-12-07 17:13:49 +00:00
Florian Duros 845838b67f
Fix `assertUnreadLessThan` and `assertUnreadGreaterThan` (#12012) 2023-12-07 16:38:36 +00:00
David Baker f628591227
Fix playwright result reporting for js-sdk upstream tests (#12010)
* Fix playwright result reporting for js-sdk upstream tests

Make the reporter job check out the react sdk explictly so it gets
the right thing when used from other workflows like the js-sdk.

* Remove c+ped lines from above that would have broken it
2023-12-07 13:45:44 +00:00
Michael Telatynski 5ae5855fd9
Improve stability of Playwright screenshots (#12009)
* Stabilise bot MXID length

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

* Stabilise test user MXID

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-07 10:32:23 +00:00
Florian Duros d6d3585c30
Playwright: Enable more tests in `editing-messages.spec.ts` (#12001)
* Enable skipped test in `editing-messages.spec.ts`

* Enable 2 more tests in `editing-messages.spec.ts`

* Fix `A room where all threaded edits are read is still read after restart` integ test

* Fix `A room where all threaded edits are read is still read after restart` integ test

* WIP fix `A room where all threaded edits are read is still read after restart `

* WIP fix `A room where all threaded edits are read is still read after restart `
2023-12-07 10:29:25 +00:00
Andy Balaam df11b90fd6
Set up key backup using non-deprecated APIs (#12005) 2023-12-06 17:54:47 +00:00
Florian Duros 1ce569bfc2
Fix `A room with an edit is still read after restart` integ test (#12007) 2023-12-06 16:59:10 +00:00
Michael Telatynski ab9604056d
Migrate invite-dialog.spec.ts from Cypress to Playwright (#11990)
* 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 invite-dialog.spec.ts from Cypress to Playwright

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

* Add screenshots

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

* Iterate

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

* Remove spurious await

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-12-06 16:04:07 +00:00