-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathapp.spec.js
41 lines (33 loc) ยท 1.46 KB
/
app.spec.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
import testIDs from '../example/src/testIDs';
describe('Example app', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should have menu screen', async () => {
await expect(element(by.id(testIDs.menu.CONTAINER))).toBeVisible();
});
it('should open calendars screen', async () => {
await element(by.id(testIDs.menu.CALENDARS)).tap();
await expect(element(by.id(testIDs.calendars.CONTAINER))).toBeVisible();
});
it('should open calendar list screen', async () => {
await element(by.id(testIDs.menu.CALENDAR_LIST)).tap();
await expect(element(by.id(testIDs.calendarList.CONTAINER))).toBeVisible();
});
it('should open horizontal calendar list screen', async () => {
await element(by.id(testIDs.menu.HORIZONTAL_LIST)).tap();
await expect(element(by.id(testIDs.horizontalList.CONTAINER))).toBeVisible();
});
it('should open agenda screen', async () => {
await element(by.id(testIDs.menu.AGENDA)).tap();
await expect(element(by.id(testIDs.agenda.CONTAINER))).toBeVisible();
});
it('should open expandable calendar screen', async () => {
await element(by.id(testIDs.menu.EXPANDABLE_CALENDAR)).tap();
// await expect(element(by.id(testIDs.expandableCalendar.CONTAINER))).toBeVisible();
});
it('should open week calendar screen', async () => {
await element(by.id(testIDs.menu.WEEK_CALENDAR)).tap();
await expect(element(by.id(testIDs.weekCalendar.CONTAINER))).toBeVisible();
});
});