-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathlanding.js
40 lines (33 loc) · 855 Bytes
/
landing.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* global describe */
/* global before */
/* global after */
/* global beforeEach */
/* global afterEach */
/* global it */
describe('blip landing page', function() {
before(function(client, done) {
done();
});
after(function(client, done) {
client.end(function() {
done();
});
});
afterEach(function(client, done) {
done();
});
beforeEach(function(client, done) {
done();
});
it('should have the Tidepool logo', function(client) {
client
.url('http://localhost:3000/')
.expect.element('.login-nav-tidepool-logo').to.be.present;
});
it('should have a username form field that can be set', function(client) {
client.expect.element('#username').to.be.present;
client.setValue('#username', ['duderino'])
.pause(500)
.assert.value('#username', 'duderino');
});
});