Skip to content

Commit ccc30fc

Browse files
committed
test moved to earlier place
1 parent e3b8c34 commit ccc30fc

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

playground/e2e/Options.test.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ describe('Options', () => {
5555
await expect(elementByLabel('Title Changed')).toBeVisible();
5656
});
5757

58+
it(':android: TopBar custom title with subtitle should be visible', async () => {
59+
await elementById('GOTO_TOPBAR_TITLE_TEST').tap();
60+
await expect(elementById('TOPBAR_TITLE_TEXT')).toBeVisible();
61+
await expect(elementById('TOPBAR_TITLE_AVATAR')).toBeVisible();
62+
await device.pressBack();
63+
await expect(elementByLabel('Styling Options')).toBeVisible();
64+
});
65+
66+
it(':android: TopBar custom title without subtitle should be visible', async () => {
67+
await elementById('GOTO_TOPBAR_TITLE_TEST').tap();
68+
await elementById('SET_TOPBAR_WITHOUT_SUBTITLE_BTN').tap();
69+
await expect(elementById('TOPBAR_TITLE_TEXT')).toBeVisible();
70+
await expect(elementById('TOPBAR_TITLE_AVATAR')).toBeVisible();
71+
await device.pressBack();
72+
await expect(elementByLabel('Styling Options')).toBeVisible();
73+
});
74+
5875
it('Popping screen with yellow box should not crash', async () => {
5976
await elementById(TestIDs.SHOW_YELLOW_BOX_BTN).tap();
6077
await elementById(TestIDs.PUSH_BTN).tap();
@@ -92,21 +109,4 @@ describe('Options', () => {
92109
await element(by.id(TestIDs.SCROLLVIEW_ELEMENT)).swipe('down', 'fast');
93110
await expect(elementById(TestIDs.TOP_BAR)).toBeVisible();
94111
});
95-
96-
it(':android: TopBar custom title with subtitle should be visible', async () => {
97-
await elementById('GOTO_TOPBAR_TITLE_TEST').tap();
98-
await expect(elementById('TOPBAR_TITLE_TEXT')).toBeVisible();
99-
await expect(elementById('TOPBAR_TITLE_AVATAR')).toBeVisible();
100-
await device.pressBack();
101-
await expect(elementByLabel('Styling Options')).toBeVisible();
102-
});
103-
104-
it(':android: TopBar custom title without subtitle should be visible', async () => {
105-
await elementById('GOTO_TOPBAR_TITLE_TEST').tap();
106-
await elementById('SET_TOPBAR_WITHOUT_SUBTITLE_BTN').tap();
107-
await expect(elementById('TOPBAR_TITLE_TEXT')).toBeVisible();
108-
await expect(elementById('TOPBAR_TITLE_AVATAR')).toBeVisible();
109-
await device.pressBack();
110-
await expect(elementByLabel('Styling Options')).toBeVisible();
111-
});
112112
});

0 commit comments

Comments
 (0)