From c8bf994eb4ee19cb39916147a0fb39a16ced6839 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Mon, 11 Aug 2014 17:10:05 -0400 Subject: [PATCH] E2E tests Starting to get protractor to work --- awx/ui/tests/e2e/CheckLicense.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awx/ui/tests/e2e/CheckLicense.js b/awx/ui/tests/e2e/CheckLicense.js index dcc0ef2db3..01def2b0e2 100644 --- a/awx/ui/tests/e2e/CheckLicense.js +++ b/awx/ui/tests/e2e/CheckLicense.js @@ -16,13 +16,15 @@ describe('E2E:CheckLicense', function() { }); it('should present login dialog', function() { - var msg = element.all(by.css('#login-modal .login-alert')); - expect(msg.get(0).getText()).toMatch(/Please sign in/); + var labels = element.all(by.css('#login-modal .modal-body label')); + expect(labels.get(0).getText()).toMatch(/Username/); }); it('should login', function() { element(by.model('login_username')).sendKeys('admin'); element(by.model('login_password')).sendKeys('password01!'); element(by.id('login-button')).click(); + var user = element(by.css('#account-menu [ng-bind="current_user.username"]')); + expect(user.getText()).toMatch(/admin/); }); }); \ No newline at end of file