SIGN IN SIGN UP
go-gitea / gitea UNCLAIMED

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD

0 0 129 Go

test: fix flaky `issue-comment` close test (#37880)

After posting a comment the page reloads via fetch-action. Clicking
"Close Issue" before the form re-initializes triggers a native form
submit, which navigates to the raw JSON redirect response
(`{"redirect":...}`) instead of the issue, so "Reopen Issue" never
appears and the test times out (observed on Firefox in CI).

Wait for the comment button to become disabled — which only happens once
the form re-initializes — before clicking "Close Issue".

---
This PR was written with the help of Claude Opus 4.7

Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Co-authored-by: Nicolas <bircni@icloud.com>
S
silverwind committed
3c73da51b95d76b8ad4d86aee1416053e4cf6438
Parent: b4407e3
Committed by GitHub <noreply@github.com> on 5/28/2026, 5:09:21 AM