diff --git a/test/end-to-end-tests/src/usecases/memberlist.js b/test/end-to-end-tests/src/usecases/memberlist.js index c3b4d65351..ed7f0e389b 100644 --- a/test/end-to-end-tests/src/usecases/memberlist.js +++ b/test/end-to-end-tests/src/usecases/memberlist.js @@ -65,6 +65,9 @@ module.exports.verifyDeviceForUser = async function(session, name, expectedDevic async function getMembersInMemberlist(session) { await openRoomSummaryCard(session); + const memberPanelButton = await session.query(".mx_RoomSummaryCard_icon_people"); + // We are back at the room summary card + await memberPanelButton.click(); const memberNameElements = await session.queryAll(".mx_MemberList .mx_EntityTile_name"); return Promise.all(memberNameElements.map(async (el) => { diff --git a/test/end-to-end-tests/src/usecases/rightpanel.js b/test/end-to-end-tests/src/usecases/rightpanel.js index 42ecff1c6a..ae6bb2c771 100644 --- a/test/end-to-end-tests/src/usecases/rightpanel.js +++ b/test/end-to-end-tests/src/usecases/rightpanel.js @@ -32,9 +32,6 @@ module.exports.goBackToRoomSummaryCard = async function(session) { // Sometimes our tests have this opened to MemberInfo await backButton.click(); } catch (e) { - const memberPanelButton = await session.query(".mx_RoomSummaryCard_icon_people"); - // We are back at the room summary card - await memberPanelButton.click(); break; // stop trying to go further back } }