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