Merge pull request #2681 from jakemcdermott/test-stability-fixes

improve stability of inventory copy test and credentials form test
This commit is contained in:
Jake McDermott 2018-07-25 18:10:44 -04:00 committed by GitHub
commit 76d83b0acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -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);

View File

@ -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();
}