From 0d7152a8d9e5ab0c25b22766b5e87f150a76356a Mon Sep 17 00:00:00 2001 From: Mikhail Aheichyk Date: Thu, 12 Jan 2023 12:49:24 +0300 Subject: [PATCH] update the test after merge --- cypress/e2e/widgets/events.spec.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cypress/e2e/widgets/events.spec.ts b/cypress/e2e/widgets/events.spec.ts index f5ebf0397e..daf8e449ba 100644 --- a/cypress/e2e/widgets/events.spec.ts +++ b/cypress/e2e/widgets/events.spec.ts @@ -20,7 +20,7 @@ limitations under the License. import { IWidget } from "matrix-widget-api/src/interfaces/IWidget"; import type { MatrixClient, MatrixEvent, Room } from "matrix-js-sdk/src/matrix"; -import { SynapseInstance } from "../../plugins/synapsedocker"; +import { HomeserverInstance } from "../../plugins/utils/homeserver"; import { UserCredentials } from "../../support/login"; const DEMO_WIDGET_ID = "demo-widget-id"; @@ -93,19 +93,19 @@ function waitForRoom(win: Cypress.AUTWindow, roomId: string, predicate: (room: R } describe("Widget Events", () => { - let synapse: SynapseInstance; + let homeserver: HomeserverInstance; let user: UserCredentials; let bot: MatrixClient; let demoWidgetUrl: string; beforeEach(() => { - cy.startSynapse("default").then((data) => { - synapse = data; + cy.startHomeserver("default").then((data) => { + homeserver = data; - cy.initTestUser(synapse, "Mike").then((_user) => { + cy.initTestUser(homeserver, "Mike").then((_user) => { user = _user; }); - cy.getBot(synapse, { displayName: "Bot", autoAcceptInvites: true }).then((_bot) => { + cy.getBot(homeserver, { displayName: "Bot", autoAcceptInvites: true }).then((_bot) => { bot = _bot; }); }); @@ -115,7 +115,7 @@ describe("Widget Events", () => { }); afterEach(() => { - cy.stopSynapse(synapse); + cy.stopHomeserver(homeserver); cy.stopWebServers(); });