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:
Richard van der Hoff 2023-08-14 12:08:12 +01:00 committed by GitHub
parent 6f455217d1
commit f65c6726c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 574 additions and 19 deletions

View file

@ -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