From b40ccc4091a20a596ebc8e1471ecf83fbba000b7 Mon Sep 17 00:00:00 2001 From: "Timo K." Date: Thu, 26 Nov 2026 11:09:04 +0100 Subject: [PATCH] Remove widget sdk tests in our CI It has to be run manually now. --- playwright.config.ts | 15 ++++++++++++--- widget-rtc-sdk/README.md | 16 ++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 6c7ee73ce..2a435f4e5 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -97,14 +97,23 @@ export default defineConfig({ // Element Call as a widget in Element Web, on Chromium. This uses its // own project so that it can be sharded on CI. name: "widget", - dependencies: ["build-embedded", "build-widget-rtc-sdk"], + dependencies: ["build-embedded"], testMatch: "**/widget/**/*.@(spec|test).ts", + testIgnore: "**/widget/widget-rtc-sdk.spec.ts", + use: desktopChrome, + }, + { + // The widget RTC SDK's example widget in Element Web. CI does not run + // this project; see widget-rtc-sdk/README.md for running it by hand. + name: "widget-rtc-sdk", + dependencies: ["build-widget-rtc-sdk"], + testMatch: "**/widget/widget-rtc-sdk.spec.ts", use: desktopChrome, }, { name: "firefox", - dependencies: ["build-embedded", "build-widget-rtc-sdk"], - testIgnore: "**/mobile/**", + dependencies: ["build-embedded"], + testIgnore: ["**/mobile/**", "**/widget/widget-rtc-sdk.spec.ts"], use: { ...devices["Desktop Firefox"], ignoreHTTPSErrors: true, diff --git a/widget-rtc-sdk/README.md b/widget-rtc-sdk/README.md index a62582e7b..af3d173f3 100644 --- a/widget-rtc-sdk/README.md +++ b/widget-rtc-sdk/README.md @@ -70,6 +70,22 @@ Serve it with CORS, so a page on another origin can import it (for example `build:widget-rtc-sdk:production` (what CI deploys) minifies and leaves out source maps; `build:widget-rtc-sdk:development` does neither. +## End-to-end test + +`playwright/widget/widget-rtc-sdk.spec.ts` opens `index.html` as a widget in +two Element Webs and sends data from one to the other. CI does not run it for +now, so run it by hand when you change the bundle or the `sdk/` package. With +the Playwright backend running (`pnpm backend-playwright`), in the repository +root: + +``` +pnpm exec playwright test --project=widget-rtc-sdk +``` + +The `widget-rtc-sdk` project builds the example into +`dist-widget-rtc-sdk-example/` and Playwright serves it on +https://localhost:3003. Add `--ui` to watch it run. + ## Widget url The host fills the widget url's parameters in when it opens the widget; the