-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-test-_misc.js
43 lines (29 loc) · 934 Bytes
/
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
const kDefaultPath = 'file://' + __dirname + '/ui-test-view.html';
describe('OSFeedbox_Misc', function () {
const feed = Math.random().toString();
const item = uItem();
before(function() {
return OSVisit(kDefaultPath, {
feed,
items: JSON.stringify([item]),
});
});
describe('OSFeedbox', function test_OSFeedbox () {
it('classes OLSKDecorModule', function () {
return browser.assert.hasClass(OSFeedbox, 'OLSKDecorModule');
});
});
describe('OSFeedboxButton', function test_OSFeedboxButton () {
it('sets href', function () {
return browser.assert.attribute(OSFeedboxButton, 'href', feed);
});
});
describe('OSFeedboxListItem', function test_OSFeedboxListItem () {
it('sets text', function () {
return browser.assert.text(OSFeedboxListItem, item.title);
});
it('sets href', function () {
return browser.assert.attribute(OSFeedboxListItem, 'href', item.link);
});
});
});