Stub out calls to vector.im and matrix.org in Cypress (#9652)

This commit is contained in:
Michael Telatynski
2022-11-30 11:16:37 +00:00
committed by GitHub
parent d0fd0cfea0
commit 7136c23aa7
7 changed files with 128 additions and 1 deletions
+4
View File
@@ -21,6 +21,10 @@ import { SynapseInstance } from "../../plugins/synapsedocker";
describe("Login", () => {
let synapse: SynapseInstance;
beforeEach(() => {
cy.stubDefaultServer();
});
afterEach(() => {
cy.stopSynapse(synapse);
});
+1
View File
@@ -22,6 +22,7 @@ describe("Registration", () => {
let synapse: SynapseInstance;
beforeEach(() => {
cy.stubDefaultServer();
cy.visit("/#/register");
cy.startSynapse("consent").then(data => {
synapse = data;