mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
Merge pull request #2681 from jakemcdermott/test-stability-fixes
improve stability of inventory copy test and credentials form test
This commit is contained in:
@@ -197,8 +197,12 @@ module.exports = {
|
|||||||
|
|
||||||
credentials.section.list.section.search
|
credentials.section.list.section.search
|
||||||
.waitForElementVisible('@input', AWX_E2E_TIMEOUT_LONG)
|
.waitForElementVisible('@input', AWX_E2E_TIMEOUT_LONG)
|
||||||
.setValue('@input', `name:${store.credential.name}`)
|
.waitForElementVisible('@searchButton', AWX_E2E_TIMEOUT_LONG)
|
||||||
.click('@searchButton');
|
.sendKeys('@input', `name:${store.credential.name}`)
|
||||||
|
.sendKeys('@input', client.Keys.ENTER);
|
||||||
|
|
||||||
|
client.pause(1000);
|
||||||
|
client.waitForElementNotVisible('div.spinny');
|
||||||
|
|
||||||
credentials.waitForElementNotPresent(`${row}:nth-of-type(2)`);
|
credentials.waitForElementNotPresent(`${row}:nth-of-type(2)`);
|
||||||
credentials.expect.element(row).text.contain(store.credential.name);
|
credentials.expect.element(row).text.contain(store.credential.name);
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
import { getInventory, getInventoryNoSource } from '../fixtures';
|
import {
|
||||||
|
getInventory,
|
||||||
|
getInventoryNoSource,
|
||||||
|
getInventorySource,
|
||||||
|
} from '../fixtures';
|
||||||
|
|
||||||
let data;
|
let data;
|
||||||
|
|
||||||
@@ -7,6 +11,7 @@ module.exports = {
|
|||||||
const resources = [
|
const resources = [
|
||||||
getInventory('test-actions'),
|
getInventory('test-actions'),
|
||||||
getInventoryNoSource('test-actions'),
|
getInventoryNoSource('test-actions'),
|
||||||
|
getInventorySource('test-actions'),
|
||||||
];
|
];
|
||||||
|
|
||||||
Promise.all(resources)
|
Promise.all(resources)
|
||||||
@@ -96,7 +101,7 @@ module.exports = {
|
|||||||
|
|
||||||
inventories.expect.element(`#inventories_table tr[id="${data.inventory.id}"]`).visible;
|
inventories.expect.element(`#inventories_table tr[id="${data.inventory.id}"]`).visible;
|
||||||
inventories.expect.element('#copy-action').visible;
|
inventories.expect.element('#copy-action').visible;
|
||||||
inventories.expect.element('#copy-action[class$="btn-disabled"]').present;
|
inventories.expect.element('#copy-action[class*="btn-disabled"]').present;
|
||||||
|
|
||||||
client.end();
|
client.end();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user