-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathsignup.js
43 lines (36 loc) · 1.04 KB
/
signup.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
41
42
43
/* global describe */
/* global before */
/* global after */
/* global beforeEach */
/* global afterEach */
/* global it */
describe('signup', 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 show the sign up form when sign up link is clicked', function(client) {
client
.url('http://localhost:3000')
.expect.element('#app > div > div > div.login > div.container-nav-outer.login-nav > div > ul.nav.nav-right > li > a')
.to.be.present
.and.to.be.an('a')
.and.to.be.visible
.and.to.have.attribute('href').equals('http://localhost:3000/signup');
client.click('#app > div > div > div.login > div.container-nav-outer.login-nav > div > ul.nav.nav-right > li > a');
client.expect.element('#fullName')
.to.be.present
.and.to.be.an('input')
.and.to.be.visble;
});
});