mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
Merge pull request #1828 from jakemcdermott/patch-tests
patch smoke test
This commit is contained in:
@@ -161,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');
|
||||||
@@ -186,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');
|
||||||
@@ -212,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');
|
||||||
@@ -236,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user