-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathterms.js
44 lines (38 loc) · 1.25 KB
/
terms.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
44
/* global describe */
/* global before */
/* global after */
/* global beforeEach */
/* global afterEach */
/* global it */
describe('terms of service', 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 terms on the terms route', function(client) {
client
.url('http://localhost:3000/terms')
.expect.element('#app > div > div > div.terms.js-terms > div.terms-content.terms-box > div > .iframe-holder > iframe.terms-iframe-terms')
.to.be.present.before(5000)
.and.to.be.an('iframe')
.and.to.be.visible
.and.to.have.attribute('src').equals('https://tidepool.org/terms-of-use-summary');
});
it('should show the privacy policy too', function(client) {
client.expect.element('#app > div > div > div.terms.js-terms > div.terms-content.terms-box > div > .iframe-holder > iframe.terms-iframe-privacy')
.to.be.present.before(5000)
.and.to.be.an('iframe')
.and.to.be.visible
.and.to.have.attribute('src').equals('https://tidepool.org/privacy-policy-summary');
});
});