mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-05 18:51:09 +01:00
use correct css class for cider composer
This commit is contained in:
parent
f5b605beaa
commit
5b71cf5d8d
@ -20,7 +20,7 @@ module.exports = async function sendMessage(session, message) {
|
|||||||
session.log.step(`writes "${message}" in room`);
|
session.log.step(`writes "${message}" in room`);
|
||||||
// this selector needs to be the element that has contenteditable=true,
|
// this selector needs to be the element that has contenteditable=true,
|
||||||
// not any if its parents, otherwise it behaves flaky at best.
|
// 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
|
// sometimes the focus that type() does internally doesn't seem to work
|
||||||
// and calling click before seems to fix it 🤷
|
// and calling click before seems to fix it 🤷
|
||||||
await composer.click();
|
await composer.click();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user