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
|
@ -19,9 +19,9 @@ const assert = require('assert');
|
|||
module.exports = async function invite(session, userId) {
|
||||
session.log.step(`invites "${userId}" to room`);
|
||||
await session.delay(1000);
|
||||
const inviteButton = await session.waitAndQuery(".mx_MemberList_invite");
|
||||
const inviteButton = await session.query(".mx_MemberList_invite");
|
||||
await inviteButton.click();
|
||||
const inviteTextArea = await session.waitAndQuery(".mx_AddressPickerDialog textarea");
|
||||
const inviteTextArea = await session.query(".mx_AddressPickerDialog textarea");
|
||||
await inviteTextArea.type(userId);
|
||||
await inviteTextArea.press("Enter");
|
||||
const confirmButton = await session.query(".mx_Dialog_primary");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue