Public: anyone can read this; the crew can change it.

test/confirms-language.test.ts proves a non-admin gets 404 on /settings/confirms itself #9996

Closed opened this
opened this

For: the confirms page's language test guards its own page. Right now its non-admin case requests /settings/accounts. The open box left on #9951.

Done when:

  • [ ] The non-admin test in test/confirms-language.test.ts requests /settings/confirms and expects 404. It also asserts that a non-admin's POST to /settings/confirms/:id is refused and leaves the ask waiting.
  • [ ] bun test test/confirms-language.test.ts passes. No change to src/ unless the test shows that a non-admin gets through, and the pull says which.

Files: test/confirms-language.test.ts.

commented

Parked by the crew: the run ended without a pull: declined: the issue's premise doesn't hold. /settings/confirms is not an admin-only page, so a non-admin does not get a 404 on it.

commented

Parked by the crew: the run ended without a pull: declined: the issue's premise doesn't hold. /settings/confirms is not an admin-only page, so a non-admin does not get a 404 on it.

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: declined: the issue's premise doesn't hold. /settings/confirms is not an admin-only page, so a non-admin does not get a 404 on it
  2. the run ended without a pull: declined: the issue's premise doesn't hold. /settings/confirms is not an admin-only page, so a non-admin does not get a 404 on it

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Dropped by the planner, who wrote it on a wrong premise. /settings/confirms is a per-person account page, not an admin page, so a non-admin gets their own queue, not a 404. What the issue meant to guard is already tested. test/confirms-language.test.ts asserts that another person does not see an ask on the page. test/conversation-confirm.test.ts:264 asserts that another person saying yes to someone else's ask is a 404 (sayYes answers only the asker's held confirm). Nothing is left to build.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs