Commit Graph

97 Commits

Author SHA1 Message Date
Michael Telatynski 2c73e09907 Expose PLAYWRIGHT_COMMON_DOCKER envvar in playwright screenshots docker image 2026-02-12 14:55:12 +00:00
Michael Telatynski f243b3dd54 Enable corepack in playwright screenshots docker image 2026-02-12 14:54:59 +00:00
Michael Telatynski 82f185700e Add --no-link-modules to playwright-screenshots.sh script 2026-02-12 14:54:33 +00:00
dependabot[bot] 9c1f3ba928 build(deps): bump axios in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [axios](https://github.com/axios/axios).


Updates `axios` from 1.13.2 to 1.13.5
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.13.2...v1.13.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.5
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-10 10:32:16 +00:00
Michael Telatynski 31d5d60b4c Bump playwright-common version to 2.2.6 2026-02-10 10:31:06 +00:00
Michael Telatynski 5f7b56a89f Add support for pnpm in playwright-common screenshot script 2026-02-09 09:34:54 +00:00
Richard van der Hoff cb27334d3d Fix entrypoint for element-web-playwright-common docker image (#190) 2026-02-02 22:18:35 +00:00
Richard van der Hoff ccadd73953 playwright-screenshots: fix incompatibility with podman (#189)
Podman doesn't recognise the `volume-nocopy` option on mounts. It doesn't seem
to be necessary so let's omit it.
2026-02-02 11:27:00 +00:00
Michael Telatynski c3966aea82 Fix playwright-screenshots utility for native dependencies
Without this, a developer would need to both specify --with-node-modules && --entrypoint and provide a custom entrypoint to do the `yarn install`.
2026-01-23 17:15:49 +00:00
Michael Telatynski fba0da2eaa Bump playwright-common version to 2.2.5 2026-01-23 16:57:21 +00:00
Michael Telatynski 33fbb47d93 Fix Playwright version checking
Updated method to fetch Playwright version using yarn list.

`yarn info` was just querying what the latest available package is
2026-01-23 16:39:23 +00:00
dependabot[bot] 9233c0c0db build(deps): bump lodash-es in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [lodash-es](https://github.com/lodash/lodash).


Updates `lodash-es` from 4.17.22 to 4.17.23
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits/4.17.23)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.17.23
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 02:02:39 +00:00
Michael Telatynski edfc66fa81 Bump version from 2.2.3 to 2.2.4 2026-01-16 15:35:24 +00:00
Robin 48e262d8f1 Avoid starting a homeserver when using just the axe fixture
Since 4c928d2854 importing the axe fixture would cause your test to pull in the entire world of Synapse and Postgres services. For Compound Web tests, we want to be able to use axe in isolation without all the extra fixtures. Inverting the fixture hierarchy ought to do the trick.
2026-01-16 12:05:41 +01:00
Michael Telatynski 0561301d98 Bump version to 2.2.3 in package.json 2026-01-07 14:02:43 +00:00
Half-Shot 23565d2d36 Fix imports to import with .js 2026-01-06 17:15:04 +00:00
Half-Shot a303e13060 Change module resolution to check for correct imports. 2026-01-06 17:14:50 +00:00
Half-Shot db11815589 Bump @element-hq/element-web-playwright-common to 2.2.2 2026-01-06 15:47:10 +00:00
Half-Shot 184c8dc3b3 Just set as Record<string, boolean> 2026-01-06 15:32:36 +00:00
Half-Shot b048f5323c Switch to MSC3814 2026-01-06 15:27:06 +00:00
Half-Shot de205f9911 Add msc2697_enabled 2026-01-06 14:46:50 +00:00
Half-Shot ea6017a26c Bump @element-hq/element-web-playwright-common to 2.2.1 2026-01-06 14:14:35 +00:00
Half-Shot 1bf78ac7c4 use as 2026-01-06 14:14:21 +00:00
Half-Shot 839a757d94 Bump @element-hq/element-web-playwright-common to 2.2.0 2026-01-06 13:57:23 +00:00
Half-Shot a8523421da add docs 2026-01-06 13:42:22 +00:00
Half-Shot 894e684dab match other syntax 2026-01-06 13:33:08 +00:00
Half-Shot b12b59a932 Allow configuring MatrixRTC endpoints. 2026-01-06 13:31:30 +00:00
Michael Telatynski fec7923af0 Update index.ts 2025-12-09 17:06:45 +00:00
renovate[bot] a7583dbdbc Update dependency glob to v13 2025-12-09 16:39:37 +00:00
Richard van der Hoff 0d46bc924c Fix "Error: No request context set" in credentials fixture (#145)
Make sure that we've run the `context` fixture first, so that the request API
is configured
2025-11-27 19:40:29 +00:00
Richard van der Hoff 4c928d2854 Avoid mergeTests in test fixture declarations (#138)
Normally, one can find the documentation on a playwright test fixture by
finding its declaration (i.e., you can ctrl-click on the fixture name and find
its documentaion).

However, `mergeTests` re-declares the type, making it much harder to find the
documentation on a given fixture.

It's easy enough to avoid `mergeTests`: we just structure our `test.extend`
calls as a strict hieirarchy.
2025-11-27 17:13:22 +00:00
R Midhun Suresh 3b31bbf4a9 Bump version to 2.1.0 2025-11-27 17:16:56 +05:30
R Midhun Suresh 76b07d736c Make script compatible with yarn berry 2025-11-27 13:23:16 +05:30
dependabot[bot] 0788c3a207 Bump glob in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [glob](https://github.com/isaacs/node-glob).


Updates `glob` from 11.0.1 to 11.1.0
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v11.0.1...v11.1.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 11.1.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 07:36:22 +00:00
Michael Telatynski c2f4535153 Delint 2025-11-12 12:16:31 +00:00
Richard van der Hoff e31efda9b4 Apply suggestion from @richvdh 2025-11-06 11:45:58 +00:00
Richard van der Hoff 49ad9c1d9c Start Ryuk ourselves 2025-11-05 16:23:16 +00:00
Richard van der Hoff 2af8e3c21f Warn about linked node modules under podman
Thanks to a podman bug, the symlink workaround doesn't work there. Let's emit a
noisy warning.
2025-11-04 23:49:31 +00:00
Richard van der Hoff 28384f1112 playwright-screenshots: clean up output and error handling
Somebody wrote those `pushd` and `popd` lines without testing
them. Redirections bind tighter than `||` so those lines were always spamming
the console.

Using `set -e` is more reliable than always checking exit codes anyway.
2025-11-04 23:47:09 +00:00
Richard van der Hoff 6502ffcbe0 Disable ryuk reaper in the playwright container
... thus making it possible to use `testcontainers` inside unprivileged
containers.
2025-11-04 23:46:13 +00:00
Richard van der Hoff 4cfa5b3265 Use DOCKER_HOST env var to find docker socket 2025-11-04 23:04:44 +00:00
Richard van der Hoff 31d6b73476 v2.0.0 2025-10-03 17:00:45 +01:00
Richard van der Hoff 68de37a6cb Playwright: add a createNewInstance utility function
Sometimes it's useful to be able to use two separate Element-Web instances, in
isolated browsers. This patch adds a utility method which creates such an
instance.
2025-10-03 14:34:22 +01:00
Richard van der Hoff d0c3901a1a Merge remote-tracking branch 'origin/main' into rav/new_context 2025-10-03 14:32:47 +01:00
Richard van der Hoff 595141cf4b Playwright: factor out helpers for config.json
Factor out some helper functions for building `config.json` files,
and adding the relevant routes to browser contexts.
2025-10-03 14:28:35 +01:00
Richard van der Hoff 92b9896deb Factor out a helper function populateLocalStorageWithCredentials
This just takes the innards of the `pageWithCredentials` fixture and makes it
reusable in contexts outside the fixture. (This can be useful if you want to
use Element with an account other than the default provided by the
`credentials` fixture.)
2025-10-03 12:42:57 +01:00
Richard van der Hoff 885e7c36d9 Add homeserverBaseUrl field to Credentials
`Credentials` is used to record the access token etc once we log in a or
register a user. An access token isn't much use to you unless you know where to
send it, so this patch addes a new field, `homeserverUrl`, which contains
the base public URL for the homeserver.
2025-10-03 12:25:21 +01:00
Quentin Gliech 636cee5dcb Fix the MAS config override ordering 2025-08-05 12:05:04 +02:00
Quentin Gliech 4a9559bb16 element-web-playwright-common: bump version to 1.4.5 2025-08-05 11:25:47 +02:00
Quentin Gliech 6520352453 Re-export the MasConfig type again 2025-08-05 11:03:37 +02:00