From b0e0b8f0e36be3a6ff877857fbee253e071e5c0f Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Fri, 23 Feb 2018 15:04:55 -0500 Subject: [PATCH] use navbar when accessing project and template views --- awx/ui/test/e2e/tests/smoke.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/awx/ui/test/e2e/tests/smoke.js b/awx/ui/test/e2e/tests/smoke.js index 6d855794ff..8d27ec4f39 100644 --- a/awx/ui/test/e2e/tests/smoke.js +++ b/awx/ui/test/e2e/tests/smoke.js @@ -49,7 +49,10 @@ module.exports = { 'create project': client => { const projects = client.page.projects(); - projects.navigate(); + projects.section.navigation.waitForElementVisible('@projects'); + projects.section.navigation.expect.element('@projects').enabled; + projects.section.navigation.click('@projects'); + projects.waitForElementVisible('div.spinny'); projects.waitForElementNotVisible('div.spinny'); @@ -236,7 +239,10 @@ module.exports = { 'create job template': client => { const templates = client.page.templates(); - templates.navigate(); + templates.section.navigation.waitForElementVisible('@templates'); + templates.section.navigation.expect.element('@templates').enabled; + templates.section.navigation.click('@templates'); + templates.waitForElementVisible('div.spinny'); templates.waitForElementNotVisible('div.spinny');