| ... | @@ -17,24 +17,24 @@ describe("relay client install dialog coordinator", () => { | ... | @@ -17,24 +17,24 @@ describe("relay client install dialog coordinator", () => { |
| 17 | }); | 17 | }); |
| 18 | | 18 | |
| 19 | it("moves a confirmed installation through streamed progress stages", async () => { | 19 | it("moves a confirmed installation through streamed progress stages", async () => { |
| 20 | const confirmation = requestRelayClientInstallConfirmation("2026.5.2"); | 20 | const confirmation = requestRelayClientInstallConfirmation("2026.10.0"); |
| 21 | expect(readRelayClientInstallDialogState()).toEqual({ | 21 | expect(readRelayClientInstallDialogState()).toEqual({ |
| 22 | status: "confirming", | 22 | status: "confirming", |
| 23 | version: "2026.5.2", | 23 | version: "2026.10.0", |
| 24 | }); | 24 | }); |
| 25 | | 25 | |
| 26 | respondToRelayClientInstallConfirmation(true); | 26 | respondToRelayClientInstallConfirmation(true); |
| 27 | await expect(confirmation).resolves.toBe(true); | 27 | await expect(confirmation).resolves.toBe(true); |
| 28 | expect(readRelayClientInstallDialogState()).toEqual({ | 28 | expect(readRelayClientInstallDialogState()).toEqual({ |
| 29 | status: "installing", | 29 | status: "installing", |
| 30 | version: "2026.5.2", | 30 | version: "2026.10.0", |
| 31 | stage: "checking", | 31 | stage: "checking", |
| 32 | }); | 32 | }); |
| 33 | | 33 | |
| 34 | reportRelayClientInstallProgress({ type: "progress", stage: "downloading" }); | 34 | reportRelayClientInstallProgress({ type: "progress", stage: "downloading" }); |
| 35 | expect(readRelayClientInstallDialogState()).toEqual({ | 35 | expect(readRelayClientInstallDialogState()).toEqual({ |
| 36 | status: "installing", | 36 | status: "installing", |
| 37 | version: "2026.5.2", | 37 | version: "2026.10.0", |
| 38 | stage: "downloading", | 38 | stage: "downloading", |
| 39 | }); | 39 | }); |
| 40 | | 40 | |
| ... | @@ -43,7 +43,7 @@ describe("relay client install dialog coordinator", () => { | ... | @@ -43,7 +43,7 @@ describe("relay client install dialog coordinator", () => { |
| 43 | status: "closing", | 43 | status: "closing", |
| 44 | view: { | 44 | view: { |
| 45 | status: "installing", | 45 | status: "installing", |
| 46 | version: "2026.5.2", | 46 | version: "2026.10.0", |
| 47 | stage: "downloading", | 47 | stage: "downloading", |
| 48 | }, | 48 | }, |
| 49 | }); | 49 | }); |
| ... | @@ -53,7 +53,7 @@ describe("relay client install dialog coordinator", () => { | ... | @@ -53,7 +53,7 @@ describe("relay client install dialog coordinator", () => { |
| 53 | }); | 53 | }); |
| 54 | | 54 | |
| 55 | it("returns to idle when installation is declined", async () => { | 55 | it("returns to idle when installation is declined", async () => { |
| 56 | const confirmation = requestRelayClientInstallConfirmation("2026.5.2"); | 56 | const confirmation = requestRelayClientInstallConfirmation("2026.10.0"); |
| 57 | respondToRelayClientInstallConfirmation(false); | 57 | respondToRelayClientInstallConfirmation(false); |
| 58 | | 58 | |
| 59 | await expect(confirmation).resolves.toBe(false); | 59 | await expect(confirmation).resolves.toBe(false); |
| ... | @@ -61,7 +61,7 @@ describe("relay client install dialog coordinator", () => { | ... | @@ -61,7 +61,7 @@ describe("relay client install dialog coordinator", () => { |
| 61 | status: "closing", | 61 | status: "closing", |
| 62 | view: { | 62 | view: { |
| 63 | status: "confirming", | 63 | status: "confirming", |
| 64 | version: "2026.5.2", | 64 | version: "2026.10.0", |
| 65 | }, | 65 | }, |
| 66 | }); | 66 | }); |
| 67 | | 67 | |
| ... | @@ -70,26 +70,26 @@ describe("relay client install dialog coordinator", () => { | ... | @@ -70,26 +70,26 @@ describe("relay client install dialog coordinator", () => { |
| 70 | }); | 70 | }); |
| 71 | | 71 | |
| 72 | it("rejects concurrent confirmation with the active install state", async () => { | 72 | it("rejects concurrent confirmation with the active install state", async () => { |
| 73 | const confirmation = requestRelayClientInstallConfirmation("2026.5.2"); | 73 | const confirmation = requestRelayClientInstallConfirmation("2026.10.0"); |
| 74 | respondToRelayClientInstallConfirmation(true); | 74 | respondToRelayClientInstallConfirmation(true); |
| 75 | await expect(confirmation).resolves.toBe(true); | 75 | await expect(confirmation).resolves.toBe(true); |
| 76 | reportRelayClientInstallProgress({ type: "progress", stage: "downloading" }); | 76 | reportRelayClientInstallProgress({ type: "progress", stage: "downloading" }); |
| 77 | | 77 | |
| 78 | const error = await requestRelayClientInstallConfirmation("2026.6.0").then( | 78 | const error = await requestRelayClientInstallConfirmation("2026.11.0").then( |
| 79 | () => undefined, | 79 | () => undefined, |
| 80 | (cause: unknown) => cause, | 80 | (cause: unknown) => cause, |
| 81 | ); | 81 | ); |
| 82 | | 82 | |
| 83 | expect(error).toBeInstanceOf(RelayClientInstallConfirmationConflictError); | 83 | expect(error).toBeInstanceOf(RelayClientInstallConfirmationConflictError); |
| 84 | expect(error).toMatchObject({ | 84 | expect(error).toMatchObject({ |
| 85 | requestedVersion: "2026.6.0", | 85 | requestedVersion: "2026.11.0", |
| 86 | activeVersion: "2026.5.2", | 86 | activeVersion: "2026.10.0", |
| 87 | activeDialogStatus: "installing", | 87 | activeDialogStatus: "installing", |
| 88 | activeInstallStage: "downloading", | 88 | activeInstallStage: "downloading", |
| 89 | }); | 89 | }); |
| 90 | expect(error).not.toHaveProperty("cause"); | 90 | expect(error).not.toHaveProperty("cause"); |
| 91 | expect((error as Error).message).toBe( | 91 | expect((error as Error).message).toBe( |
| 92 | "Cannot confirm relay client installation 2026.6.0; installation 2026.5.2 has dialog status installing.", | 92 | "Cannot confirm relay client installation 2026.11.0; installation 2026.10.0 has dialog status installing.", |
| 93 | ); | 93 | ); |
| 94 | }); | 94 | }); |
| 95 | }); | 95 | }); |