You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-10-31 01:45:39 +03:00
Add a cypress test for SSO login (#11401)
* Allow `startHomeserver` to take an options object ... so that we can add more options * Add a Cypress test for SSO login
This commit is contained in:
committed by
GitHub
parent
6f455217d1
commit
f65c6726c9
@@ -26,6 +26,7 @@ import PluginConfigOptions = Cypress.PluginConfigOptions;
|
||||
import { getFreePort } from "../utils/port";
|
||||
import { dockerExec, dockerLogs, dockerRun, dockerStop } from "../docker";
|
||||
import { HomeserverConfig, HomeserverInstance } from "../utils/homeserver";
|
||||
import { StartHomeserverOpts } from "../../support/homeserver";
|
||||
|
||||
// A cypress plugins to add command to start & stop dendrites in
|
||||
// docker with preset templates.
|
||||
@@ -82,8 +83,8 @@ async function cfgDirFromTemplate(template: string, dendriteImage: string): Prom
|
||||
// Start a dendrite instance: the template must be the name of
|
||||
// one of the templates in the cypress/plugins/dendritedocker/templates
|
||||
// directory
|
||||
async function dendriteStart(template: string): Promise<HomeserverInstance> {
|
||||
return containerStart(template, false);
|
||||
async function dendriteStart(opts: StartHomeserverOpts): Promise<HomeserverInstance> {
|
||||
return containerStart(opts.template, false);
|
||||
}
|
||||
|
||||
// Start a dendrite instance using pinecone routing: the template must be the name of
|
||||
|
||||
Reference in New Issue
Block a user