Permalink
Browse files

fixed demo

  • Loading branch information...
alincode committed Oct 21, 2016
1 parent 57105cd commit fc1fa2fdad205d0188120542128b0a39fe85ab32
Showing with 3 additions and 3 deletions.
  1. +1 −1 test/pageobjects/login.page.js
  2. +2 −2 test/specs/demo2.js
@@ -28,7 +28,7 @@ var LoginPage = Object.create(page, {
clickLoginButton: {
value: function() {
browser.click('.Button--primary');
browser.click('button[type=submit]');
}
},
View
@@ -10,7 +10,7 @@ describe('demo 2: dirty code', function() {
browser.url('http://demo.keystonejs.com/keystone/signin');
browser.element('[name=email]').setValue('demo@keystonejs.com');
browser.element('[name=password]').setValue('1111');
browser.click('.Button--primary');
browser.click('button[type=submit]');
browser.waitForExist('.Alert--danger');
const message = browser.getText('.Alert--danger');
assert.equal(message,
@@ -21,7 +21,7 @@ describe('demo 2: dirty code', function() {
browser.url('http://demo.keystonejs.com/keystone/signin');
browser.element('[name=email]').setValue('demo@keystonejs.com');
browser.element('[name=password]').setValue('demo');
browser.click('.Button--primary');
browser.click('button[type=submit]');
browser.waitForExist('[href="/keystone/signout"]');
});

0 comments on commit fc1fa2f

Please sign in to comment.