-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-test-_misc.js
38 lines (28 loc) · 1.31 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
const kDefaultRoute = require('./controller.js').OLSKControllerRoutes().shift();
const uLocalized = function (inputData) {
return OLSKTestingLocalized(inputData, 'en');
};
describe('OLSKAppFeatureList_Misc', function () {
before(function () {
return browser.OLSKVisit(kDefaultRoute);
});
uLocalized('OLSKAppFeatureListArray').forEach(function (e, i) {
describe('OLSKFeatureListItemIcon', function test_OLSKFeatureListItemIcon () {
it('sets src', function () {
return browser.assert.attribute(`.OLSKFeatureListItem:nth-child(${ i + 1 }) .OLSKFeatureListItemIcon`, 'src', [
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureEverywhere.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureOffline.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureSync.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureKeyboard.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureTransport.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureAccessible.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeaturePrivate.svg',
'/node_modules/OLSKUIAssets/_OLSKSharedFeatureZeroData.svg',
][i]);
});
it('sets role', function () {
return browser.assert.attribute(`.OLSKFeatureListItem:nth-child(${ i + 1 }) .OLSKFeatureListItemIcon`, 'role', 'presentation');
});
});
});
});