{"size": 688, "ext": "js", "max_stars_repo_path": "detox/test/e2e/h-stress-root.js", "max_stars_repo_name": "joonsp/detox", "max_stars_repo_stars_event_min_datetime": "2021-04-29T08:33:32.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-29T08:33:32.000Z", "max_issues_repo_path": "detox/test/e2e/h-stress-root.js", "max_issues_repo_name": "joonsp/detox", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "detox/test/e2e/h-stress-root.js", "max_forks_repo_name": "joonsp/detox", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.6666666667, "max_line_length": 79, "alphanum_fraction": 0.6206395349}
describe('StressRoot', () => {
  beforeEach(async () => {
    await device.relaunchApp();
  });

  beforeEach(async () => {
    await element(by.label('Switch Root')).tap();
  });

  after(async () => {
    await device.relaunchApp();
  });

  it('should switch root view controller from RN to native', async () => {
    await element(by.label('Switch to a new native root')).tap();
    await expect(element(by.label('this is a new native root'))).toBeVisible();
  });

  it('should switch root view controller from RN to RN', async () => {
    await element(by.label('Switch to multiple react roots')).tap();
    await expect(element(by.label('Choose a test'))).toBeVisible();
  });
});
