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 5 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,7 +86,7 @@ describe('screen style', () => {
86 86
     await elementById(testIDs.SHOW_LEFT_SIDE_MENU_BUTTON).tap();
87 87
     await expect(elementById(testIDs.HIDE_LEFT_SIDE_MENU_BUTTON)).toBeVisible();
88 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 92
   test('side menu visibility - right', async () => {
@@ -94,7 +94,7 @@ describe('screen style', () => {
94 94
     await elementById(testIDs.SHOW_RIGHT_SIDE_MENU_BUTTON).tap();
95 95
     await expect(elementById(testIDs.HIDE_RIGHT_SIDE_MENU_BUTTON)).toBeVisible();
96 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 100
   test('set right buttons', async () => {