react-native-navigation的迁移库

ComplexLayout.test.js 822B

1234567891011121314151617181920212223
  1. const Utils = require('./Utils');
  2. const testIDs = require('../playground/src/testIDs');
  3. const { elementByLabel, elementById } = Utils;
  4. describe('complex layout', () => {
  5. beforeEach(async () => {
  6. await device.relaunchApp();
  7. });
  8. it(':ios: shows external component in stack in modal', async () => {
  9. await elementById(testIDs.COMPLEX_LAYOUT_BUTTON).tap();
  10. await elementById(testIDs.EXTERNAL_COMPONENT_IN_STACK).tap();
  11. await expect(elementByLabel('External component in stack')).toBeVisible();
  12. });
  13. it(':ios: shows external component in deep stack in modal', async () => {
  14. await elementById(testIDs.COMPLEX_LAYOUT_BUTTON).tap();
  15. await elementById(testIDs.EXTERNAL_COMPONENT_IN_DEEP_STACK).tap();
  16. await expect(elementByLabel('External component in deep stack')).toBeVisible();
  17. });
  18. });