Skip to content

fix(tests): Settings e2e test suite tests the Zustand store directly, not the settings UI flow #406

@github-actions

Description

@github-actions

Summary

Every assertion in settings-flow.test.tsx goes through usePreferencesStore.getState() directly. The test suite will pass even if the real settings page stops rendering the correct controls, miswires event handlers, or fails to hydrate from the store — because the real component is never involved.

Affected file

src/UILayer/web/src/__tests__/e2e/settings-flow.test.tsx — line 54

Required fix

Render the real settings page component and interact with it via user events (userEvent.click, userEvent.type). Assert on what the user sees (rendered output) rather than internal store state.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions