Skip to content

fix(ui): wait for schedule deletion redirect in live test - #2879

Open
Dragonzz27 wants to merge 1 commit into
kagent-dev:mainfrom
Dragonzz27:codex/fix-schedule-delete-2850
Open

Dragonzz27 wants to merge 1 commit into
kagent-dev:mainfrom
Dragonzz27:codex/fix-schedule-delete-2850

Conversation

@Dragonzz27

Copy link
Copy Markdown

Fixes #2850.

Summary

Wait for the redirect to the schedules list after deletion, then assert that the deleted schedule is absent. Do not inspect or click controls on the detail page that navigation is unmounting. Production navigation and retained-history behavior are unchanged.

Verification

From ui/:

  • yarn typecheck — passed.
  • yarn exec eslint playwright/live/schedules.spec.ts --max-warnings 0 — passed.
  • yarn test — 524 tests passed.
  • Chromium schedules lifecycle suite — passed.
  • Reproduced the old cleanup sequence against the actual UI with the in-browser fixture backend: the Back link detaches during navigation and times out. The same browser probe with the redirect assertion passes; both that probe and the existing schedule lifecycle test passed (2/2).

The live cluster suite was not run: this local environment has no configured kagent cluster. The browser probe verifies the UI navigation race, not controller persistence. Existing retained-history coverage in the fixture suite is unchanged.

Implemented with AI assistance; all changes were reviewed and validated locally.

@github-actions github-actions Bot added the bug Something isn't working label Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live schedules spec asserts a detail page that deleting redirects away from

1 participant