Skip to content

Commit

Permalink
Enable AP disconnection checks on upgrade page
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapona committed Aug 20, 2024
1 parent fdb27b8 commit 3513fa5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/onboarding_app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default () => {
};

const pathDisplaysApDisconnectDialog = (path: string) => {
return ![PageRoute.Upgrade.toString(), PageRoute.Restart.toString()].includes(path);
return ![PageRoute.Restart.toString()].includes(path);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ describe("App", () => {

// on upgrade page
await waitForUpgradePage();
await checkForDialog();

// mock upgrade and go to registration page
await upgrade();
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/msw/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ export default [
rest.post("/stop-vnc-wifi-advanced-connection", (_, res, ctx) => {
return res(ctx.body("OK"));
}),
rest.get("/updater?all", (_, res, ctx) => {
return res(ctx.body("OK"));
}),
rest.get("/vnc-wifi-advanced-connection-url", (_, res, ctx) => {
return res(ctx.json({ url: "http://localhost" }));
}),
Expand Down

0 comments on commit 3513fa5

Please sign in to comment.