mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 05:00:07 -03:30
add setup step for org lookup check
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user