From ebc11ad00e01b38872c96bf52cac570d748170bd Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 10 Apr 2018 21:42:29 -0700 Subject: [PATCH] travis: attempt to fix flaky test --- tests/spec/108-compose-dialog.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/spec/108-compose-dialog.js b/tests/spec/108-compose-dialog.js index 625eab63..b8dbf50f 100644 --- a/tests/spec/108-compose-dialog.js +++ b/tests/spec/108-compose-dialog.js @@ -10,7 +10,7 @@ fixture`108-compose-dialog.js` test('can compose using a dialog', async t => { await t.useRole(foobarRole) - await scrollToStatus(t, 20) + await scrollToStatus(t, 15) await t.expect(modalDialog.exists).notOk() .expect(composeButton.getAttribute('aria-label')).eql('Compose') await sleep(2000) @@ -19,19 +19,19 @@ test('can compose using a dialog', async t => { .typeText(modalDialog.find('.compose-box-input'), 'hello from the modal') .click(modalDialog.find('.compose-box-button-compose')) .expect(modalDialog.exists).notOk() - await sleep(10000) + await sleep(5000) await scrollToTopOfTimeline(t) await t.hover(getNthStatus(0)) await scrollContainerToTop() await t - .expect(showMoreButton.innerText).contains('Show 1 more') + .expect(showMoreButton.innerText).contains('Show 1 more', {timeout: 30000}) .click(showMoreButton) await t.expect(getNthStatus(0).innerText).contains('hello from the modal', {timeout: 20000}) }) test('can use emoji dialog within compose dialog', async t => { await t.useRole(foobarRole) - await scrollToStatus(t, 20) + await scrollToStatus(t, 15) await t.expect(composeButton.getAttribute('aria-label')).eql('Compose') await sleep(2000) await t.click(composeButton) @@ -40,7 +40,7 @@ test('can use emoji dialog within compose dialog', async t => { .expect(modalDialog.find('.compose-box-input').value).eql(':blobpats: ') .click(modalDialog.find('.compose-box-button-compose')) .expect(modalDialog.exists).notOk() - await sleep(10000) + await sleep(5000) await scrollToTopOfTimeline(t) await t.hover(getNthStatus(0)) await scrollContainerToTop()