Bladeren bron

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 jaren geleden
bovenliggende
commit
26c12f7757
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      e2e/ScreenStyle.test.js

+ 2
- 2
e2e/ScreenStyle.test.js Bestand weergeven

@@ -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 () => {