-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-test-_access.js
52 lines (38 loc) · 1.43 KB
/
ui-test-_access.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
45
46
47
48
49
50
51
52
const kDefaultRoute = require('./controller.js').OLSKControllerRoutes().shift();
Object.entries({
OLSKAppFeatureList: '.OLSKAppFeatureList',
OLSKAppFeatureOpenSourceName: '.OLSKAppFeatureListItemOpenSource .OLSKFeatureListItemName',
OLSKAppFeatureOpenSourceBlurb: '.OLSKAppFeatureListItemOpenSource .OLSKFeatureListItemBlurb',
}).map(function (e) {
return global[e.shift()] = e.pop();
});
describe('OLSKAppFeatureList_Access', function () {
before(function() {
return browser.OLSKVisit(kDefaultRoute);
});
it('shows OLSKAppFeatureList', function() {
return browser.assert.elements(OLSKAppFeatureList, 1);
});
it('shows OLSKFeatureList', function() {
return browser.assert.elements('.OLSKFeatureList', 1);
});
it('hides OLSKAppFeatureOpenSourceName', function () {
return browser.assert.elements(OLSKAppFeatureOpenSourceName, 0);
});
it('hides OLSKAppFeatureOpenSourceBlurb', function () {
return browser.assert.elements(OLSKAppFeatureOpenSourceBlurb, 0);
});
context('OLSKAppFeatureListRepoURL', function () {
before(function() {
return browser.OLSKVisit(kDefaultRoute, {
OLSKAppFeatureListRepoURL: Math.random().toString(),
});
});
it('shows OLSKAppFeatureOpenSourceName', function () {
return browser.assert.elements(OLSKAppFeatureOpenSourceName, 1);
});
it('shows OLSKAppFeatureOpenSourceBlurb', function () {
return browser.assert.elements(OLSKAppFeatureOpenSourceBlurb, 1);
});
});
});