Merge pull request #2299 from jakemcdermott/tests/workflow-visualizer-5000-selector

update selector used for workflow button
This commit is contained in:
Jake McDermott 2018-06-25 10:47:34 -04:00 committed by GitHub
commit 9449eeb37e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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: {

View File

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