1. 程式人生 > >React Native Detox 登入test

React Native Detox 登入test

   describe('Login Test', () => {
        //*beforeEach(async () => {await device.reloadReactNative();});
    
        it('登入測試', async () => {
          await element(by.id('count')).typeText('18866667777');
          await element(by.id('password')).typeText('18866667777');
          await element(by.text('登入')).tap();
          }
        );
    
        it('登入測試', async () => {
            await element(by.id('left')).tap()
            await element(by.text('退出登入')).tap();
          }
        );
    }
    )