test e2e tests workaround
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
48de174576
commit
b7c688d328
1 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,15 @@ const {openRoomDirectory} = require('./create-room');
|
||||||
|
|
||||||
module.exports = async function join(session, roomName) {
|
module.exports = async function join(session, roomName) {
|
||||||
session.log.step(`joins room "${roomName}"`);
|
session.log.step(`joins room "${roomName}"`);
|
||||||
|
while (true) {
|
||||||
|
try {
|
||||||
|
const toastDismissButton = await session.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
|
||||||
|
await toastDismissButton.click();
|
||||||
|
} catch (e) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
await openRoomDirectory(session);
|
await openRoomDirectory(session);
|
||||||
const roomInput = await session.query('.mx_DirectorySearchBox input');
|
const roomInput = await session.query('.mx_DirectorySearchBox input');
|
||||||
await session.replaceInputText(roomInput, roomName);
|
await session.replaceInputText(roomInput, roomName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue