浏览代码

setStackRoot e2e

yogevbd 6 年前
父节点
当前提交
e1be29ebb6
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      e2e/ScreenStack.test.js

+ 10
- 0
e2e/ScreenStack.test.js 查看文件

@@ -81,4 +81,14 @@ describe('screen stack', () => {
81 81
     await expect(elementByLabel('This is an external component')).toBeVisible();
82 82
     await expect(elementById(testIDs.TOP_BAR_ELEMENT)).toBeVisible();
83 83
   });
84
+
85
+  it(':ios: set stack root component should be first in stack', async () => {
86
+    await elementById(testIDs.PUSH_BUTTON).tap();
87
+    await expect(elementByLabel('Stack Position: 1')).toBeVisible();
88
+    await elementById(testIDs.SET_STACK_ROOT_BUTTON).tap();
89
+    await expect(elementByLabel('Stack Position: 2')).toBeVisible();
90
+    await elementById(testIDs.POP_BUTTON).tap();
91
+    await expect(elementByLabel('Stack Position: 2')).toBeVisible();
92
+  });
93
+  
84 94
 });