1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

try to fix the e2e tests

This commit is contained in:
Michael Telatynski
2020-08-13 16:55:48 +01:00
parent b8a260bb84
commit 62c1798bec

View File

@@ -39,6 +39,9 @@ async function createRoom(session, roomName, encrypted=false) {
const addRoomButton = await roomsSublist.$(".mx_RoomSublist_auxButton");
await addRoomButton.click();
const createRoomButton = await session.query('.mx_AccessibleButton[aria-label="Create new room"]');
await createRoomButton.click();
const roomNameInput = await session.query('.mx_CreateRoomDialog_name input');
await session.replaceInputText(roomNameInput, roomName);