mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Merge pull request #2299 from jakemcdermott/tests/workflow-visualizer-5000-selector
update selector used for workflow button
This commit is contained in:
commit
9449eeb37e
@ -95,7 +95,8 @@ module.exports = {
|
||||
wfjtDetails
|
||||
},
|
||||
elements: {
|
||||
title: 'div[class^="Form-title"]'
|
||||
title: 'div[class^="Form-title"]',
|
||||
visualizerButton: '#workflow_job_template_workflow_visualizer_btn',
|
||||
}
|
||||
},
|
||||
editWorkflowJobTemplate: {
|
||||
@ -105,7 +106,8 @@ module.exports = {
|
||||
permissions
|
||||
},
|
||||
elements: {
|
||||
title: 'div[class^="Form-title"]'
|
||||
title: 'div[class^="Form-title"]',
|
||||
visualizerButton: '#workflow_job_template_workflow_visualizer_btn',
|
||||
}
|
||||
},
|
||||
list: {
|
||||
|
||||
@ -102,13 +102,11 @@ module.exports = {
|
||||
|
||||
templates.expect.element('@save').visible;
|
||||
templates.expect.element('@save').enabled;
|
||||
client.pause(1000);
|
||||
|
||||
client
|
||||
.useXpath()
|
||||
.pause(1000)
|
||||
.waitForElementVisible('//*[text()=" Workflow Editor"]')
|
||||
.click('//*[text()=" Workflow Editor"]')
|
||||
.useCss()
|
||||
templates.section.editWorkflowJobTemplate
|
||||
.waitForElementVisible('@visualizerButton')
|
||||
.click('@visualizerButton')
|
||||
.waitForElementVisible('div.spinny')
|
||||
.waitForElementNotVisible('div.spinny')
|
||||
.waitForAngular();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user