You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Fix e2e test right panel back behaviour
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user