mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
remove redundant navbar checks
This commit is contained in:
parent
b9f9104f57
commit
21a973752b
@ -136,10 +136,11 @@ module.exports = {
|
||||
|
||||
client.expect.element('#hosts_tab').css('background-color').contain('132, 137, 146');
|
||||
|
||||
client.useCss();
|
||||
client.useXpath();
|
||||
client.waitForElementVisible(addHost);
|
||||
client.expect.element(addHost).enabled;
|
||||
client.click(addHost);
|
||||
client.useCss();
|
||||
|
||||
client.waitForElementVisible('#host_name');
|
||||
client.sendKeys('#host_name', 'localhost');
|
||||
@ -160,16 +161,7 @@ module.exports = {
|
||||
const credentials = client.page.credentials();
|
||||
const { details } = credentials.section.add.section;
|
||||
|
||||
credentials.section.navigation.waitForElementVisible('@credentials');
|
||||
credentials.section.navigation.expect.element('@credentials').enabled;
|
||||
credentials.section.navigation.click('@credentials');
|
||||
|
||||
credentials.waitForElementVisible('div.spinny');
|
||||
credentials.waitForElementNotVisible('div.spinny');
|
||||
|
||||
credentials.section.list.waitForElementVisible('@add');
|
||||
credentials.section.list.expect.element('@add').enabled;
|
||||
credentials.section.list.click('@add');
|
||||
client.navigateTo(`${credentials.url()}/add`);
|
||||
|
||||
details.waitForElementVisible('@save');
|
||||
details.clearAndSelectType('Vault');
|
||||
@ -185,13 +177,7 @@ module.exports = {
|
||||
credentials.waitForElementVisible('div.spinny');
|
||||
credentials.waitForElementNotVisible('div.spinny');
|
||||
|
||||
credentials.section.navigation.waitForElementVisible('@credentials');
|
||||
credentials.section.navigation.expect.element('@credentials').enabled;
|
||||
credentials.section.navigation.click('@credentials');
|
||||
|
||||
credentials.section.list.waitForElementVisible('@add');
|
||||
credentials.section.list.expect.element('@add').enabled;
|
||||
credentials.section.list.click('@add');
|
||||
client.navigateTo(`${credentials.url()}/add`);
|
||||
|
||||
details.waitForElementVisible('@save');
|
||||
details.clearAndSelectType('Vault');
|
||||
@ -211,15 +197,7 @@ module.exports = {
|
||||
const credentials = client.page.credentials();
|
||||
const { details } = credentials.section.add.section;
|
||||
|
||||
credentials.section.navigation.waitForElementVisible('@credentials');
|
||||
credentials.section.navigation.expect.element('@credentials').enabled;
|
||||
credentials.section.navigation.click('@credentials');
|
||||
|
||||
credentials.waitForElementNotVisible('div.spinny');
|
||||
|
||||
credentials.section.list.waitForElementVisible('@add');
|
||||
credentials.section.list.expect.element('@add').enabled;
|
||||
credentials.section.list.click('@add');
|
||||
client.navigateTo(`${credentials.url()}/add`);
|
||||
|
||||
details.waitForElementVisible('@save');
|
||||
details.clearAndSelectType('Machine');
|
||||
@ -235,12 +213,7 @@ module.exports = {
|
||||
'create job template': client => {
|
||||
const templates = client.page.templates();
|
||||
|
||||
templates.section.navigation.waitForElementVisible('@templates');
|
||||
templates.section.navigation.expect.element('@templates').enabled;
|
||||
templates.section.navigation.click('@templates');
|
||||
|
||||
templates.waitForElementVisible('div.spinny');
|
||||
templates.waitForElementNotVisible('div.spinny');
|
||||
client.navigateTo(templates.url());
|
||||
|
||||
templates.selectAdd('Job Template');
|
||||
templates.selectInventory(INVENTORY_NAME);
|
||||
@ -295,10 +268,9 @@ module.exports = {
|
||||
client.waitForElementNotPresent(running, 60000);
|
||||
client.waitForElementVisible(success, 60000);
|
||||
|
||||
client.useXpath();
|
||||
client.useCss();
|
||||
client.waitForElementVisible(output1, 60000);
|
||||
client.waitForElementVisible(output2, 60000);
|
||||
client.useCss();
|
||||
|
||||
client.end();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user