Browse Source

Fix test: Check if the button the sidemenu is no longer visible (#3779)

Seems like CENTERED_TEXT_HEADER is always visible so the test was not actually checking properly if the side menu closed properly.
Alberto Blanco 6 years ago
parent
commit
26c12f7757
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      e2e/ScreenStyle.test.js

+ 2
- 2
e2e/ScreenStyle.test.js View File

86
     await elementById(testIDs.SHOW_LEFT_SIDE_MENU_BUTTON).tap();
86
     await elementById(testIDs.SHOW_LEFT_SIDE_MENU_BUTTON).tap();
87
     await expect(elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON)).toBeVisible();
87
     await expect(elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON)).toBeVisible();
88
     await elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON).tap();
88
     await elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON).tap();
89
-    await expect(elementById(testIDs.CENTERED_TEXT_HEADER)).toBeVisible();
89
+    await expect(elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON)).toBeNotVisible();
90
   });
90
   });
91
 
91
 
92
   test('side menu visibility - right', async () => {
92
   test('side menu visibility - right', async () => {
94
     await elementById(testIDs.SHOW_RIGHT_SIDE_MENU_BUTTON).tap();
94
     await elementById(testIDs.SHOW_RIGHT_SIDE_MENU_BUTTON).tap();
95
     await expect(elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON)).toBeVisible();
95
     await expect(elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON)).toBeVisible();
96
     await elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON).tap();
96
     await elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON).tap();
97
-    await expect(elementById(testIDs.CENTERED_TEXT_HEADER)).toBeVisible();
97
+    await expect(elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON)).toBeNotVisible();
98
   });
98
   });
99
 
99
 
100
   test('set right buttons', async () => {
100
   test('set right buttons', async () => {