-
-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathUploadScreen.js
More file actions
67 lines (51 loc) · 1.51 KB
/
UploadScreen.js
File metadata and controls
67 lines (51 loc) · 1.51 KB
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
67
class UploadScreen {
setApp = function (app) {
this.app = app;
};
get loginName() {
return this.app.client.$('[class*="LoggedInAs"]');
}
get deviceSelectionContainer() {
return this.app.client.$('[class*="DeviceSelection-module"]');
}
get accuCheckUsbCheckbox() {
return this.app.client.$('input[value="accuchekusb"]');
}
get accuCheckUsbLabel() {
return this.app.client.$('label[for="accuchekusb"]');
}
get doneButton() {
return this.app.client.$('button[type="submit"]');
}
get timezoneModule() {
return this.app.client.$('[class*="TimezoneDropdown-module"]');
}
get timeZoneDropdown() {
return this.app.client.$('[class*="Select-input"]');
}
get timeZoneMessage() {
return this.app.client.$('[class*="TimezoneDropdown-module_timeDetail]');
}
get uploadDeviceList() {
return this.app.client.$('div[class*="UploadList-module"]');
}
get supportLink() {
return this.app.client.$('a[href="http://support.tidepool.org/"]');
}
get privacyLink() {
return this.app.client.$('a[href="http://tidepool.org/legal/"]');
}
get jdrfText() {
return this.app.client.$('span[class*="jdrfText"]');
}
get jdrfLogo() {
return this.app.client.$('img[class*="jdrfImage"]');
}
get version() {
return this.app.client.$('div[class*="version"]');
}
waitUntilDeviceScreenLoaded() {
return this.app.client.waitUntilTextExists('[class*="UploadList-module__headline"]', 'Upload Devices', 10000);
}
}
export default new UploadScreen();