fix(FN-2572): remove dead onboarding modal exports
- Delete obsolete AppModals code that was accidentally left in ModelOnboardingModal.tsx - Restore the Task type import used by the onboarding modal after dead code cleanup - Drop the unused SettingsModal.css import tied to removed code paths - Extend ModelOnboardingModal tests to guard against dead export regressions
This commit is contained in:
@@ -173,6 +173,16 @@ afterEach(() => {
|
||||
localStorage.removeItem("fn.authToken");
|
||||
});
|
||||
|
||||
describe("ModelOnboardingModal module exports", () => {
|
||||
it("does not export dead AppModals/auth onboarding symbols", async () => {
|
||||
const moduleExports = await import("../ModelOnboardingModal");
|
||||
|
||||
expect("AppModals" in moduleExports).toBe(false);
|
||||
expect("useAuthOnboarding" in moduleExports).toBe(false);
|
||||
expect("UseAuthOnboardingOptions" in moduleExports).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("ModelOnboardingModal", () => {
|
||||
describe("step structure", () => {
|
||||
it("renders the AI Setup step by default with all three step indicators", async () => {
|
||||
|
||||
Reference in New Issue
Block a user