remove explicit timeouts from tests for selectors
- gets rid of the waitAndQuery vs query distinction, all queries now wait if needed (called query and queryAll) - remove explicit timeouts, as they depend on the speed of the machine the tests run on
This commit is contained in:
parent
c40f7f6a3c
commit
48c1d46aa7
12 changed files with 57 additions and 59 deletions
|
@ -31,16 +31,16 @@ async function openRoomDirectory(session) {
|
|||
async function createRoom(session, roomName) {
|
||||
session.log.step(`creates room "${roomName}"`);
|
||||
await openRoomDirectory(session);
|
||||
const createRoomButton = await session.waitAndQuery('.mx_RoomDirectory_createRoom');
|
||||
const createRoomButton = await session.query('.mx_RoomDirectory_createRoom');
|
||||
await createRoomButton.click();
|
||||
|
||||
const roomNameInput = await session.waitAndQuery('.mx_CreateRoomDialog_input');
|
||||
const roomNameInput = await session.query('.mx_CreateRoomDialog_input');
|
||||
await session.replaceInputText(roomNameInput, roomName);
|
||||
|
||||
const createButton = await session.waitAndQuery('.mx_Dialog_primary');
|
||||
const createButton = await session.query('.mx_Dialog_primary');
|
||||
await createButton.click();
|
||||
|
||||
await session.waitAndQuery('.mx_MessageComposer');
|
||||
await session.query('.mx_MessageComposer');
|
||||
session.log.done();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue