use navbar when accessing project and template views

This commit is contained in:
Jake McDermott 2018-02-23 15:04:55 -05:00
parent c90cf7c5e2
commit b0e0b8f0e3
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35

View File

@ -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');