diff --git a/awx/ui/test/e2e/objects/sections/navigation.js b/awx/ui/test/e2e/objects/sections/navigation.js index c0577a269c..2f5c9b3a31 100644 --- a/awx/ui/test/e2e/objects/sections/navigation.js +++ b/awx/ui/test/e2e/objects/sections/navigation.js @@ -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"]', diff --git a/awx/ui/test/e2e/tests/smoke.js b/awx/ui/test/e2e/tests/smoke.js index 19eb4b5b90..c8bceb5a4d 100644 --- a/awx/ui/test/e2e/tests/smoke.js +++ b/awx/ui/test/e2e/tests/smoke.js @@ -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();