add setup step for org lookup check

This commit is contained in:
Jake McDermott
2018-02-25 15:12:56 -05:00
parent 01a8b2771a
commit c786736688
2 changed files with 22 additions and 16 deletions

View File

@@ -4,7 +4,6 @@
docker exec -i tools_awx_1 sh <<-EOSH docker exec -i tools_awx_1 sh <<-EOSH
awx-manage createsuperuser --noinput --username=awx-e2e --email=null@ansible.com awx-manage createsuperuser --noinput --username=awx-e2e --email=null@ansible.com
awx-manage update_password --username=awx-e2e --password=password awx-manage update_password --username=awx-e2e --password=password
make --directory=/awx_devel DATA_GEN_PRESET=e2e bulk_data
EOSH EOSH
# run all of the tests with a live browser # run all of the tests with a live browser

View File

@@ -1,25 +1,32 @@
import { range } from 'lodash';
import { getOrganization } from '../fixtures';
module.exports = { module.exports = {
before: (client, done) => { before: (client, done) => {
const credentials = client.page.credentials(); const resources = range(100).map(n => getOrganization(`test-lookup-${n}`));
const { details } = credentials.section.add.section;
client.login(); Promise.all(resources)
client.waitForAngular(); .then(() => {
const credentials = client.page.credentials();
const { details } = credentials.section.add.section;
credentials.section.navigation client.login();
.waitForElementVisible('@credentials') client.waitForAngular();
.click('@credentials');
credentials credentials.section.navigation.waitForElementVisible('@credentials');
.waitForElementVisible('div.spinny') credentials.section.navigation.click('@credentials');
.waitForElementNotVisible('div.spinny');
credentials.section.list credentials.waitForElementVisible('div.spinny');
.waitForElementVisible('@add') credentials.waitForElementNotVisible('div.spinny');
.click('@add');
details credentials.section.list.waitForElementVisible('@add');
.waitForElementVisible('@save', done); credentials.section.list.click('@add');
details.waitForElementVisible('@save');
done();
});
}, },
'open the lookup modal': client => { 'open the lookup modal': client => {
const credentials = client.page.credentials(); const credentials = client.page.credentials();