Merge pull request #24 from matrix-org/bwindels/increaseservernoticetimeout

increase timeout for server notices room
This commit is contained in:
Bruno Windels
2018-09-18 11:13:30 +02:00
committed by GitHub
+1 -1
View File
@@ -19,7 +19,7 @@ const acceptInvite = require("./accept-invite")
module.exports = async function acceptServerNoticesInviteAndConsent(session) {
await acceptInvite(session, "Server Notices");
session.log.step(`accepts terms & conditions`);
const consentLink = await session.waitAndQuery(".mx_EventTile_body a");
const consentLink = await session.waitAndQuery(".mx_EventTile_body a", 10000);
const termsPagePromise = session.waitForNewPage();
await consentLink.click();
const termsPage = await termsPagePromise;