react-native-navigation的迁移库

CustomTransition.js 681B

12345678910111213141516171819202122
  1. const Utils = require('./Utils');
  2. const testIDs = require('../playground/src/testIDs');
  3. const elementById = Utils.elementById;
  4. describe(':ios: custom transition', () => {
  5. beforeEach(async () => {
  6. await device.relaunchApp();
  7. });
  8. it('sanity', async () => {
  9. await elementById(testIDs.PUSH_OPTIONS_BUTTON).tap();
  10. await elementById(testIDs.CUSTOM_TRANSITION_BUTTON).tap();
  11. await expect(element(by.id('shared_image1'))).toExist();
  12. await element(by.id('shared_image1')).tap();
  13. await expect(element(by.id('shared_image2'))).toExist();
  14. await element(by.id('shared_image2')).tap();
  15. await expect(element(by.id('shared_image1'))).toExist();
  16. });
  17. });