mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
21 lines
669 B
JavaScript
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();
|
|
});
|
|
});
|