react-native-navigation的迁移库

12345678910111213141516171819
  1. describe('app', () => {
  2. beforeEach((done) => {
  3. global.simulator.relaunchApp(done);
  4. });
  5. it('shows welcome screen', () => {
  6. expect(elementByLabel('React Native Navigation!')).toBeVisible();
  7. });
  8. it('switch to tab based app', () => {
  9. elementByLabel('Switch to tab based app').tap();
  10. expect(elementByLabel('This is a tab screen')).toBeVisible();
  11. });
  12. });
  13. function elementByLabel(label) {
  14. return element(by.label(label));
  15. }