From ba1ee86c6732d60d811b56f0b3f2b19ead6db3b9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 23 Jul 2018 11:21:34 +0200 Subject: [PATCH] wait to be visible --- tests/signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/signup.js b/tests/signup.js index 79f105ee70..65044f900c 100644 --- a/tests/signup.js +++ b/tests/signup.js @@ -28,7 +28,7 @@ module.exports = async function signup(page, username, password, homeserver) { await advancedRadioButton.click(); } // wait until register button is visible - await page.waitForSelector('.mx_Login_submit[value=Register]'); + await page.waitForSelector('.mx_Login_submit[value=Register]', {visible: true, timeout: 500}); //fill out form const loginFields = await page.$$('.mx_Login_field'); assert.strictEqual(loginFields.length, 7);