1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #2542 from jakemcdermott/fix-smoke

fix smoke test

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2018-10-28 00:32:26 +00:00 committed by GitHub
commit ddda6b3d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 17 deletions

View File

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

View File

@ -98,6 +98,12 @@ module.exports = {
projects.waitForElementVisible('div.spinny', 120000);
projects.waitForElementNotVisible('div.spinny');
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 => {
const inventories = client.page.inventories();