diff --git a/tests/spec/014-compose-post-privacy.js b/tests/spec/014-compose-post-privacy.js index 309469e4..a6997c73 100644 --- a/tests/spec/014-compose-post-privacy.js +++ b/tests/spec/014-compose-post-privacy.js @@ -13,12 +13,15 @@ fixture`014-compose-post-privacy.js` test('Changes post privacy', async t => { await loginAsFoobar(t) + await sleep(2000) await t .expect(postPrivacyButton.getAttribute('aria-label')).eql('Adjust privacy (currently Public)') .click(postPrivacyButton) + .expect(getNthPostPrivacyOptionInDialog(2).exists).ok({ timeout: 30000 }) .click(getNthPostPrivacyOptionInDialog(2)) .expect(postPrivacyButton.getAttribute('aria-label')).eql('Adjust privacy (currently Unlisted)') .click(postPrivacyButton) + .expect(getNthPostPrivacyOptionInDialog(1).exists).ok({ timeout: 30000 }) .click(getNthPostPrivacyOptionInDialog(1)) .expect(postPrivacyButton.getAttribute('aria-label')).eql('Adjust privacy (currently Public)') })