Idle exit starts however the app was opened (0.1.2)
On a real G2 with build 0.1.1, a voice launch with nothing touched never left the glasses: no glassesMenu launch source reached the app, so the countdown was never armed. After one swipe it left as designed. The countdown now runs however the session was opened. The launch source is kept for Diagnostics only. Setting up on the phone stays protected: nothing leaves while unpaired, and a touch on the phone page holds the app open for the grace period. Dan approved the change after the trial. Also records the 0.1.1 trial, Dan's keep/change decisions (contract section F) and the 0.1.1 upload. Version 0.1.2. Not reviewed, not uploaded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -833,17 +833,33 @@ describe('leaving the glasses when idle (the app blocks notifications while it i
|
||||
await until('left from the error screen', () => device.exits === 1, 1500);
|
||||
});
|
||||
|
||||
it('opened from the phone with no gesture yet, it stays: setting up on the phone is not interrupted', async () => {
|
||||
it('it leaves however it was opened: no launch source and no gesture at all (what a voice launch gave on a real G2)', async () => {
|
||||
controllerExtras = { idleExit: FAST };
|
||||
await pairedController();
|
||||
expect(snapshot.launchSource).toBe('unknown');
|
||||
await until('left from Ready with nothing ever touched', () => device.exits === 1, 1500);
|
||||
expect(device.exitAttempts).toBe(1);
|
||||
});
|
||||
|
||||
it('opened from the phone app, it leaves too', async () => {
|
||||
controllerExtras = { idleExit: FAST };
|
||||
await pairedController();
|
||||
device.launchedFrom('appMenu');
|
||||
controller.askText('typed on the phone');
|
||||
await until('answer', () => phase() === 'answer');
|
||||
await quiet(500);
|
||||
expect(device.exits).toBe(0);
|
||||
// The first gesture on the glasses means they are in use: from then on it applies.
|
||||
await until('left after the answer', () => device.exits === 1, 1500);
|
||||
});
|
||||
|
||||
it('an unpaired app never leaves: pairing on the phone is not interrupted', async () => {
|
||||
controllerExtras = { idleExit: FAST };
|
||||
device = new FakeDevice();
|
||||
controller = makeController(device);
|
||||
await controller.start();
|
||||
device.launchedFrom('glassesMenu');
|
||||
device.swipeDown();
|
||||
await until('left after the glasses were used', () => device.exits === 1, 1500);
|
||||
await quiet(700);
|
||||
expect(phase()).toBe('unpaired');
|
||||
expect(device.exitAttempts).toBe(0);
|
||||
});
|
||||
|
||||
it('touching the phone page holds it open for the grace period', async () => {
|
||||
|
||||
Reference in New Issue
Block a user