diff --git a/test/end-to-end-tests/src/usecases/send-message.js b/test/end-to-end-tests/src/usecases/send-message.js index d3bd02cae3..38fe6fceb3 100644 --- a/test/end-to-end-tests/src/usecases/send-message.js +++ b/test/end-to-end-tests/src/usecases/send-message.js @@ -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();