From dbb9ffbaf40746a777511a5bec4a2a489ecf01b6 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 29 Nov 2017 17:45:25 -0500 Subject: [PATCH] use settings when setting up user data --- awx/ui/test/e2e/fixtures.js | 8 +++++--- awx/ui/test/e2e/tests/test-auditor-read-only-forms.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/awx/ui/test/e2e/fixtures.js b/awx/ui/test/e2e/fixtures.js index 1cc8a6ea72..a0f886e074 100644 --- a/awx/ui/test/e2e/fixtures.js +++ b/awx/ui/test/e2e/fixtures.js @@ -1,5 +1,7 @@ import uuid from 'uuid'; +import { AWX_E2E_PASSWORD } from './settings'; + import { all, get, @@ -231,7 +233,7 @@ const getAuditor = (namespace = session) => getOrganization(namespace) email: 'null@ansible.com', is_superuser: false, is_system_auditor: true, - password: 'password' + password: AWX_E2E_PASSWORD })); const getUser = (namespace = session) => getOrganization(namespace) @@ -243,7 +245,7 @@ const getUser = (namespace = session) => getOrganization(namespace) email: 'null@ansible.com', is_superuser: false, is_system_auditor: false, - password: 'password' + password: AWX_E2E_PASSWORD })); const getJobTemplateAdmin = (namespace = session) => { @@ -259,7 +261,7 @@ const getJobTemplateAdmin = (namespace = session) => { email: 'null@ansible.com', is_superuser: false, is_system_auditor: false, - password: 'password' + password: AWX_E2E_PASSWORD })); const assignRolePromise = Promise.all([userPromise, rolePromise]) diff --git a/awx/ui/test/e2e/tests/test-auditor-read-only-forms.js b/awx/ui/test/e2e/tests/test-auditor-read-only-forms.js index f31d33e173..ecce0836c5 100644 --- a/awx/ui/test/e2e/tests/test-auditor-read-only-forms.js +++ b/awx/ui/test/e2e/tests/test-auditor-read-only-forms.js @@ -63,7 +63,7 @@ module.exports = { inventories = client.page.inventories(); teams = client.page.teams(); - client.login(data.auditor.username, data.auditor.password); + client.login(data.auditor.username); client.waitForAngular(); done();