Files
Detox/detox/test/e2e/08.stress-root.test.js

21 lines
669 B
JavaScript

describe('StressRoot', () => {
beforeEach(async () => {
await device.relaunchApp();
await element(by.text('Switch Root')).tap();
});
afterAll(async () => {
await device.relaunchApp();
});
it('should switch root view controller from RN to native', async () => {
await element(by.text('Switch to a new native root')).tap();
await expect(element(by.text('this is a new native root'))).toBeVisible();
});
it(':ios: should switch root view controller from RN to RN on @legacy', async () => {
await element(by.text('Switch to multiple react roots')).tap();
await expect(element(by.text('Choose a test'))).toBeVisible();
});
});