update the test after merge
This commit is contained in:
parent
73a8c5bcc4
commit
0d7152a8d9
1 changed files with 7 additions and 7 deletions
|
@ -20,7 +20,7 @@ limitations under the License.
|
||||||
import { IWidget } from "matrix-widget-api/src/interfaces/IWidget";
|
import { IWidget } from "matrix-widget-api/src/interfaces/IWidget";
|
||||||
|
|
||||||
import type { MatrixClient, MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
|
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";
|
import { UserCredentials } from "../../support/login";
|
||||||
|
|
||||||
const DEMO_WIDGET_ID = "demo-widget-id";
|
const DEMO_WIDGET_ID = "demo-widget-id";
|
||||||
|
@ -93,19 +93,19 @@ function waitForRoom(win: Cypress.AUTWindow, roomId: string, predicate: (room: R
|
||||||
}
|
}
|
||||||
|
|
||||||
describe("Widget Events", () => {
|
describe("Widget Events", () => {
|
||||||
let synapse: SynapseInstance;
|
let homeserver: HomeserverInstance;
|
||||||
let user: UserCredentials;
|
let user: UserCredentials;
|
||||||
let bot: MatrixClient;
|
let bot: MatrixClient;
|
||||||
let demoWidgetUrl: string;
|
let demoWidgetUrl: string;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startSynapse("default").then((data) => {
|
cy.startHomeserver("default").then((data) => {
|
||||||
synapse = data;
|
homeserver = data;
|
||||||
|
|
||||||
cy.initTestUser(synapse, "Mike").then((_user) => {
|
cy.initTestUser(homeserver, "Mike").then((_user) => {
|
||||||
user = _user;
|
user = _user;
|
||||||
});
|
});
|
||||||
cy.getBot(synapse, { displayName: "Bot", autoAcceptInvites: true }).then((_bot) => {
|
cy.getBot(homeserver, { displayName: "Bot", autoAcceptInvites: true }).then((_bot) => {
|
||||||
bot = _bot;
|
bot = _bot;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -115,7 +115,7 @@ describe("Widget Events", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
cy.stopSynapse(synapse);
|
cy.stopHomeserver(homeserver);
|
||||||
cy.stopWebServers();
|
cy.stopWebServers();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue