-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-test-_misc.js
66 lines (45 loc) · 1.7 KB
/
ui-test-_misc.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const kDefaultRoute = require('./controller.js').OLSKControllerRoutes().shift();
describe('OLSKCrown_Misc', function () {
const item = {
OLSKCrownCardImageURL: Math.random().toString(),
OLSKCrownCardNameText: Math.random().toString(),
};
before(function () {
return browser.OLSKVisit(kDefaultRoute, item);
});
describe('OLSKCrown', function test_OLSKCrown () {
it('classes OLSKToolbar', function () {
return browser.assert.hasClass(OLSKCrown, 'OLSKToolbar');
});
it('classes OLSKToolbarJustify', function () {
return browser.assert.hasClass(OLSKCrown, 'OLSKToolbarJustify');
});
it('classes OLSKStickyHeader', function () {
return browser.assert.hasClass(OLSKCrown, 'OLSKStickyHeader');
});
it('classes OLSKCommonEdgeBottom', function () {
return browser.assert.hasClass(OLSKCrown, 'OLSKCommonEdgeBottom');
});
});
describe('OLSKCrownCard', function test_OLSKCrownCard () {
it('classes OLSKCommonCard', function () {
return browser.assert.hasClass(OLSKCrownCard, 'OLSKCommonCard');
});
it('classes OLSKCommonCrownCardMini', function () {
return browser.assert.hasClass(OLSKCrownCard, 'OLSKCommonCrownCardMini');
});
});
describe('OLSKCrownCardImage', function test_OLSKCrownCardImage () {
it('sets role', function () {
return browser.assert.attribute(OLSKCrownCardImage, 'role', 'presentation');
});
it('binds OLSKCrownCardImageURL', function () {
return browser.assert.attribute(OLSKCrownCardImage, 'src', item.OLSKCrownCardImageURL);
});
});
describe('OLSKCrownCardName', function test_OLSKCrownCardName () {
it('sets text', function () {
return browser.assert.text(OLSKCrownCardName, item.OLSKCrownCardNameText);
});
});
});