mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-28 10:01:09 +08:00
Remove widget sdk tests in our CI
It has to be run manually now.
This commit is contained in:
+12
-3
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user