mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
11 lines
503 B
JavaScript
11 lines
503 B
JavaScript
describe(":ios: Background-Foreground Transitions", () => {
|
|
it("Backgrounding and foregrounding an app should wait for transition to finish", async () => {
|
|
await device.launchApp({newInstance: true, launchArgs: { demoShowActiveNotification: true }});
|
|
await device.sendToHome();
|
|
await expect(element(by.text("Background"))).toExist();
|
|
await device.launchApp({newInstance: false, launchArgs: { demoShowActiveNotification: true }});
|
|
await expect(element(by.text("Active"))).toExist();
|
|
});
|
|
});
|
|
|