BottomTabs.test.js 552 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const Utils = require('./Utils');
const { elementByLabel, elementById, sleep } = Utils;
describe('BottomTabs', () => {
  beforeEach(async () => {
    await device.relaunchApp();
    // await elementById(TestIDs.BOTTOM_TABS_BTN).tap();
    // await expect(elementByLabel('First Tab')).toBeVisible();
  });

  it('switch to tab by index', async () => {
    // await elementById(TestIDs.SWITCH_TAB_BY_INDEX_BTN).tap();
    await expect(elementByLabel('First Tab')).toBeNotVisible();
    await expect(elementByLabel('Second Tab')).toBeVisible();
  });
});