Skip to content

test: cover the remaining regressions from earlier bugs - #12

Merged
joshchen-dev merged 1 commit into
mainfrom
claude/great-shannon-b4y5vi
Oct 6, 2026
Merged

joshchen-dev merged 1 commit into
mainfrom
claude/great-shannon-b4y5vi

Conversation

@joshchen-dev

@joshchen-dev joshchen-dev commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds regression tests for the four earlier bugs that were fixed without one. Every bug found so far now has a test that fails if it comes back.

Earlier bug New test
Sign-in read the wrong key for Discord's display name (global_name) TestDiscordIdentityReadsGlobalNameAndBotGuilds: decodes global_name against a stub Discord API and keeps only guilds the bot is in
The Schedule tab froze while fetching Discord channels on open Playwright: Schedule renders with no /channels request; clicking Change fetches them
Saved server and channel showed as "Discord server" / "Saved channel" Same Playwright test asserts "Posts go to Scions." and #raid-schedule
Times rendered as "09:00 PM" Playwright: grid column headers show 21:00 with no AM/PM

Tests only, so there's no version bump.

Verification

  • Each new test was checked by reintroducing its bug locally and confirming the test fails on its assertion:
    • an old JSON tag
    • eager channel loading
    • a hardcoded generic label
    • hourCycle: "h12"
  • Playwright passes 13 tests (1 skipped) across desktop and Pixel 7. go test ./..., go vet ./..., npm run check and npm run format:check also pass.

Every bug found so far now has a test that fails if it returns:
- Discord's global_name is decoded at sign-in, and only guilds the bot
  is in are kept.
- The Schedule tab renders from the saved schedule without requesting
  Discord channels until the leader clicks Change.
- The saved server and channel names are shown, not generic labels.
- Raid times use a 24-hour clock.

Each test was checked by reintroducing its bug and watching it fail.
@joshchen-dev
joshchen-dev merged commit 21346d9 into main Oct 6, 2026
1 check passed
@joshchen-dev
joshchen-dev deleted the claude/great-shannon-b4y5vi branch October 6, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant