From 42a467ffc81b22934ca6b8e6d704ea8d3c6e9e18 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 30 Mar 2018 08:19:18 -0700 Subject: [PATCH] make test less flakey --- tests/spec/108-compose-dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/spec/108-compose-dialog.js b/tests/spec/108-compose-dialog.js index cadb37a..1dbe0f3 100644 --- a/tests/spec/108-compose-dialog.js +++ b/tests/spec/108-compose-dialog.js @@ -11,7 +11,8 @@ test('can compose using a dialog', async t => { await t.useRole(foobarRole) await scrollToStatus(t, 15) await t.expect(modalDialog.getAttribute('aria-hidden')).eql('true') - await sleep(1000) + .expect(composeButton.getAttribute('aria-label')).eql('Compose') + await sleep(2000) await t.click(composeButton) .expect(modalDialog.hasAttribute('aria-hidden')).notOk() .typeText(modalDialog.find('.compose-box-input'), 'hello from the modal')