Files
Detox/detox/test/e2e/20.background-foreground.transitions.test.js

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();
});
});