mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
Fix e2e test right panel back behaviour
This commit is contained in:
parent
208c62048f
commit
b60c2c5d55
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user