From 212142ff746812e698d5c80bff7fbbeb641bff47 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 5 Oct 2026 17:42:58 +0200 Subject: [PATCH] Confirm the nuke prompt in the nuke_working_tree demo The recording of this demo stops with the confirmation popup still on screen. The explosion animation and the emptied Files panel that the demo exists to show never happen at all. Nuking the working tree has asked for confirmation since 238fdd573c, and the demo only selects the menu item, so the nuke never runs. The demo asserted nothing about the outcome, so it stayed green all the while. Answer the confirmation, and assert that the Files panel ends up empty. That assertion also holds the recording open until the animation has played out and the panel has been refreshed. Co-Authored-By: Claude Opus 5 (1M context) --- pkg/integration/tests/demo/nuke_working_tree.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/integration/tests/demo/nuke_working_tree.go b/pkg/integration/tests/demo/nuke_working_tree.go index 5ff2a5dd6..9db2cc112 100644 --- a/pkg/integration/tests/demo/nuke_working_tree.go +++ b/pkg/integration/tests/demo/nuke_working_tree.go @@ -39,6 +39,15 @@ var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{ Title(Equals("")). Select(Contains("Nuke working tree")). Confirm() - }) + + t.ExpectPopup().Confirmation(). + Title(Equals("Nuke working tree")). + Content(AnyString()). + Wait(1000). + Confirm() + }). + // Retries until the explosion animation has played out and the panel has + // been refreshed, so that the recording shows both. + IsEmpty() }, })