Skip to content

Commit

Permalink
Trying to fix UI tests and adding .gitignore file.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Oct 4, 2014
1 parent e6d4680 commit 1437a0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/tests/UI/processed-ui-screenshots/
8 changes: 6 additions & 2 deletions tests/UI/Admin_spec.js
Expand Up @@ -35,9 +35,13 @@ describe("LoginLdap_Admin", function () {
expect.screenshot('admin_page').to.be.captureSelector('#content', function (page) {
page.load(ldapAdminUrl);
page.evaluate(function () {
$('input#memberOf').val('cn=avengers,dc=avengers,dc=shield,dc=org');
$('input#filter').val('(objectClass=person)');
$('input#memberOf').attr('placeholder', '');
$('input#filter').attr('placeholder', '');
});

page.sendKeys('input#memberOf', 'cn=avengers,dc=avengers,dc=shield,dc=org');
page.sendKeys('input#filter', '(objectClass=person)');

page.click('input#memberOf + .test-config-option-link');
page.click('input#filter + .test-config-option-link');
}, done);
Expand Down

0 comments on commit 1437a0e

Please sign in to comment.