fix smoke test

This commit is contained in:
Jake McDermott
2018-10-27 00:15:14 -04:00
parent 9b413afb2e
commit 80adbf9c03
2 changed files with 23 additions and 17 deletions

View File

@@ -1,23 +1,23 @@
const navigation = { const navigation = {
selector: 'div[class^="at-Layout-side"]', selector: 'div[class^="at-Layout-side"]',
elements: { elements: {
expand: 'i[class$="fa-bars"]', expand: 'i[class*="fa-bars"]',
dashboard: 'i[class$="fa-tachometer"]', dashboard: 'i[class*="fa-tachometer"]',
jobs: 'i[class$="fa-spinner"]', jobs: 'i[class*="fa-spinner"]',
schedules: 'i[class$="fa-calendar"]', schedules: 'i[class*="fa-calendar"]',
portal: 'i[class$="fa-columns"]', portal: 'i[class*="fa-columns"]',
projects: 'i[class$="fa-folder-open"]', projects: 'i[class*="fa-folder-open"]',
credentials: 'i[class$="fa-key"]', credentials: 'i[class*="fa-key"]',
credentialTypes: 'i[class$="fa-list-alt"]', credentialTypes: 'i[class*="fa-list-alt"]',
inventories: 'i[class$="fa-sitemap"]', inventories: 'i[class*="fa-sitemap"]',
templates: 'i[class$="fa-pencil-square-o"]', templates: 'i[class*="fa-pencil-square-o"]',
organizations: 'i[class$="fa-building"]', organizations: 'i[class*="fa-building"]',
users: 'i[class$="fa-user"]', users: 'i[class*="fa-user"]',
teams: 'i[class$="fa-users"]', teams: 'i[class*="fa-users"]',
inventoryScripts: 'i[class$="fa-code"]', inventoryScripts: 'i[class*="fa-code"]',
notifications: 'i[class$="fa-bell"]', notifications: 'i[class*="fa-bell"]',
managementJobs: 'i[class$="fa-wrench"]', managementJobs: 'i[class*="fa-wrench"]',
instanceGroups: 'i[class$="fa-server"]', instanceGroups: 'i[class*="fa-server"]',
settings: 'i[class*="fa-cog"]', settings: 'i[class*="fa-cog"]',
settingsSubPane: '.at-SettingsSubPane', settingsSubPane: '.at-SettingsSubPane',
settingsSubPaneSystem: 'a[href="#/settings/system"]', settingsSubPaneSystem: 'a[href="#/settings/system"]',

View File

@@ -98,6 +98,12 @@ module.exports = {
projects.waitForElementVisible('div.spinny', 120000); projects.waitForElementVisible('div.spinny', 120000);
projects.waitForElementNotVisible('div.spinny'); projects.waitForElementNotVisible('div.spinny');
projects.expect.element('i[class$="success"]').visible; projects.expect.element('i[class$="success"]').visible;
projects.expect.element('#project_cancel_btn').visible;
projects.click('#project_cancel_btn');
client.refresh();
client.waitForElementVisible('div.spinny');
client.waitForElementNotVisible('div.spinny');
}, },
'create inventory': client => { 'create inventory': client => {
const inventories = client.page.inventories(); const inventories = client.page.inventories();