Files
coder/site
Ethan 4820cbf7b1 test: migrate CreateUserPage tests to Storybook play stories (#26794)
Migrates the CreateUserPage tests from vitest to Storybook play-function
stories.

The old `CreateUserPage.test.tsx` rendered the full page through
`renderWithAuth` and MSW, which is slow and contributes to `test-js`
timeout flakes. The new stories seed the react-query cache directly and
assert the same behavior in `play` functions, so they run in the
Storybook test lane instead of the vitest `unit` project.

Coverage is preserved: a success story asserts the success toast after
creating a user, and an error story asserts that an API failure surfaces
in the form's error alert.

Relates to CODAGT-686
Relates to https://github.com/coder/internal/issues/1598
2026-06-29 18:24:23 +10:00
..
…
2026-06-16 14:43:54 -06:00
2026-06-16 14:43:54 -06:00
…
2026-06-16 14:43:54 -06:00
2026-06-16 14:43:54 -06:00
2026-06-16 14:43:54 -06:00