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

Revert "increase timeout for server notices room"
This commit is contained in:
Bruno Windels 2018-09-18 16:51:34 +02:00 committed by GitHub
commit 6e9721523d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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", 10000);
const consentLink = await session.waitAndQuery(".mx_EventTile_body a");
const termsPagePromise = session.waitForNewPage();
await consentLink.click();
const termsPage = await termsPagePromise;