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:
parent
6f455217d1
commit
f65c6726c9
11 changed files with 574 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue