From 7194338653241675473019623dd795081df8c81d Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 14 Jan 2019 10:54:37 -0500 Subject: [PATCH] Reduces flake on launch job e2e test --- awx/ui/test/e2e/tests/test-launch-jt.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/ui/test/e2e/tests/test-launch-jt.js b/awx/ui/test/e2e/tests/test-launch-jt.js index e55072e10a..c4fa393d33 100644 --- a/awx/ui/test/e2e/tests/test-launch-jt.js +++ b/awx/ui/test/e2e/tests/test-launch-jt.js @@ -121,30 +121,35 @@ module.exports = { templates.expect.element('#prompt_inventory_tab').to.have.attribute('class').which.contains('at-Tab--active'); templates.expect.element('#prompt_inventory_next').visible; templates.expect.element('#prompt_inventory_next').enabled; + templates.waitForElementNotVisible('div.spinny'); templates.click('#prompt_inventory_next'); templates.waitForElementVisible('#prompt_credential_step'); templates.expect.element('#prompt_credential_tab').visible; templates.expect.element('#prompt_credential_tab').to.have.attribute('class').which.contains('at-Tab--active'); templates.expect.element('#prompt_credential_next').visible; templates.expect.element('#prompt_credential_next').enabled; + templates.waitForElementNotVisible('div.spinny'); templates.click('#prompt_credential_next'); templates.waitForElementVisible('#prompt_other_prompts_step'); templates.expect.element('#prompt_other_prompts_tab').visible; templates.expect.element('#prompt_other_prompts_tab').to.have.attribute('class').which.contains('at-Tab--active'); templates.expect.element('#prompt_other_prompts_next').visible; templates.expect.element('#prompt_other_prompts_next').enabled; + templates.waitForElementNotVisible('div.spinny'); templates.click('#prompt_other_prompts_next'); templates.waitForElementVisible('#prompt_survey_step'); templates.expect.element('#prompt_survey_tab').visible; templates.expect.element('#prompt_survey_tab').to.have.attribute('class').which.contains('at-Tab--active'); templates.expect.element('#prompt_survey_next').visible; templates.expect.element('#prompt_survey_next').enabled; + templates.waitForElementNotVisible('div.spinny'); templates.click('#prompt_survey_next'); templates.waitForElementVisible('#prompt_preview_step'); templates.expect.element('#prompt_preview_tab').visible; templates.expect.element('#prompt_preview_tab').to.have.attribute('class').which.contains('at-Tab--active'); templates.expect.element('#prompt_finish').visible; templates.expect.element('#prompt_finish').enabled; + templates.waitForElementNotVisible('div.spinny'); templates.click('#prompt_finish'); templates.waitForElementVisible('div.spinny'); templates.waitForElementNotVisible('div.spinny');