Fix e2e test right panel back behaviour

This commit is contained in:
Michael Telatynski 2021-06-29 10:37:30 +01:00
parent 208c62048f
commit b60c2c5d55

View file

@ -32,7 +32,11 @@ module.exports.goBackToRoomSummaryCard = async function(session) {
// Sometimes our tests have this opened to MemberInfo
await backButton.click();
} catch (e) {
break; // stop trying to go further back
// explicitly check for TimeoutError as this sometimes returned
// `Error: Node is detached from document` due to a re-render race or similar
if (e.name === "TimeoutError") {
break; // stop trying to go further back
}
}
}
};