update selector used for workflow button

This commit is contained in:
Jake McDermott 2018-06-25 09:56:44 -04:00
parent ccd8a48617
commit e64d05c324
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35
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();