react-native-navigation的迁移库

CustomTransition.js 614B

123456789101112131415161718192021
  1. const Utils = require('./Utils');
  2. const elementByLabel = Utils.elementByLabel;
  3. describe('custom transition', () => {
  4. beforeEach(async () => {
  5. await device.relaunchApp();
  6. });
  7. it('sanity', async () => {
  8. await elementByLabel('Push Options Screen').tap();
  9. await elementByLabel('Custom Transition').tap();
  10. await expect(element(by.id('shared_image1'))).toExist();
  11. await element(by.id('shared_image1')).tap();
  12. await expect(element(by.id('shared_image2'))).toExist();
  13. await element(by.id('shared_image2')).tap();
  14. await expect(element(by.id('shared_image1'))).toExist();
  15. });
  16. });