mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03: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:
commit
76d83b0acb
@ -197,8 +197,12 @@ module.exports = {
|
||||
|
||||
credentials.section.list.section.search
|
||||
.waitForElementVisible('@input', AWX_E2E_TIMEOUT_LONG)
|
||||
.setValue('@input', `name:${store.credential.name}`)
|
||||
.click('@searchButton');
|
||||
.waitForElementVisible('@searchButton', AWX_E2E_TIMEOUT_LONG)
|
||||
.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.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;
|
||||
|
||||
@ -7,6 +11,7 @@ module.exports = {
|
||||
const resources = [
|
||||
getInventory('test-actions'),
|
||||
getInventoryNoSource('test-actions'),
|
||||
getInventorySource('test-actions'),
|
||||
];
|
||||
|
||||
Promise.all(resources)
|
||||
@ -96,7 +101,7 @@ module.exports = {
|
||||
|
||||
inventories.expect.element(`#inventories_table tr[id="${data.inventory.id}"]`).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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user