Merge pull request #2843 from ansible/update-e2e-tests-2

Updating e2e tests to match change in order layout

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2018-11-30 02:04:21 +00:00 committed by GitHub
commit cf2deefa41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,14 +178,9 @@ module.exports = {
client.expect.element('#node-3 text').text.not.equal('').after(5000);
client.expect.element('#node-4 text').text.not.equal('').after(5000);
const checkNodeText = (selector, text) => client.getText(selector, ({ value }) => {
client.assert.equal(text.indexOf(value.replace('...', '')) >= 0, true);
});
checkNodeText('#node-1 text', 'START');
checkNodeText('#node-3 text', data.project.name);
checkNodeText('#node-4 text', data.template.name);
checkNodeText('#node-2 text', data.source.name);
client.useXpath().waitForElementVisible('//*[contains(@class, "WorkflowChart-nameText") and contains(text(), "test-actions-job")]/..');
client.useXpath().waitForElementVisible('//*[contains(@class, "WorkflowChart-nameText") and contains(text(), "test-actions-project")]/..');
client.useXpath().waitForElementVisible('//*[contains(@class, "WorkflowChart-nameText") and contains(text(), "test-actions-inventory")]/..');
templates.expect.element('@save').visible;
templates.expect.element('@save').enabled;