Merge remote-tracking branch 'e2etests/bwindels/use-cider' into bwindels/merge-e2e-tests

pull/21833/head
Bruno Windels 2019-10-09 17:12:50 +02:00
commit de21cb24e0
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = async function sendMessage(session, message) {
session.log.step(`writes "${message}" in room`);
// this selector needs to be the element that has contenteditable=true,
// not any if its parents, otherwise it behaves flaky at best.
const composer = await session.query('.mx_MessageComposer_editor');
const composer = await session.query('.mx_SendMessageComposer');
// sometimes the focus that type() does internally doesn't seem to work
// and calling click before seems to fix it 🤷
await composer.click();