Skip to content

Test/MCP UI workspace re-clicking an open app does not create a second dock - #346

Open
romanzac wants to merge 3 commits into
test/mcp-ui-a4from
test/mcp-ui-a5
Open

Test/MCP UI workspace re-clicking an open app does not create a second dock#346
romanzac wants to merge 3 commits into
test/mcp-ui-a4from
test/mcp-ui-a5

Conversation

@romanzac

@romanzac romanzac commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Add workspace: re-clicking an open app does not create a second dock MCP test.

Test plan

  • nix build .#app succeeds
  • nix build .#smoke-test -L passes
  • nix build .#integration-test -L passes (if UI-visible)
  • Doctests pass (nix build .#doctests -L if touched)

Checklist

  • Branch prefixed fix/, feat/, chore/, docs/, test/, or ci/
  • No unrelated changes bundled in
  • CLAUDE.md / README.md / docs/ updated if behaviour or build steps changed
  • Uncommitted binaries, screenshots, or .DS_Store files removed

@status-im-auto

status-im-auto commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Jenkins Builds

Click to see older builds (3)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 00a952d 1 2026-08-21 09:10:21 ~6 min linux/x86_64 📦App
✔️ 00a952d 1 2026-08-21 09:15:24 ~11 min macos/aarch64 🍎dmg
✔️ 00a952d 1 2026-08-21 09:21:24 ~17 min linux/aarch64 📦App
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 7ec1b6c 2 2026-08-27 05:30:44 ~4 min linux/x86_64 📦App
✔️ 7ec1b6c 2 2026-08-27 05:36:20 ~10 min macos/aarch64 🍎dmg
✔️ 7ec1b6c 2 2026-08-27 05:39:50 ~13 min linux/aarch64 📦App
✔️ cc58f75 3 2026-08-27 06:29:36 ~8 min linux/x86_64 📦App
✔️ cc58f75 3 2026-08-27 06:34:23 ~13 min macos/aarch64 🍎dmg
✔️ cc58f75 3 2026-08-27 06:36:50 ~15 min linux/aarch64 📦App

Spec MCP-TEST-PLAN v2 §2.A A4: from the A3 state, close fixture A's
dock and gate on dockCount reaching 0 within 5s, the welcome page
becoming visible again with the "Welcome back" greeting (fixture A
stays installed, only unloaded), and backend.currentVisibleApp
returning to "".

The dock is closed via the inspector's evaluate path
(closeDock("test_qml_only") on the WorkspaceArea object) rather than
callMethod, which does not marshal the QString argument correctly.
The test establishes its own precondition — if no dock is open it
re-opens fixture A first, and skips (per spec §0.A) when the fixture
is absent outside --ci mode.
Spec MCP-TEST-PLAN v2 §2.A A5: click sidebar.app.test_qml_only twice,
500 ms apart, starting from the empty workspace A4 leaves behind. Gates:
WorkspaceArea.dockCount stays 1 across a 2 s settle window after the
re-click, backend.currentVisibleApp still reports test_qml_only, and
exactly one instantiation of fixture A's root document exists — counted
as one QQuickWidget sourced from the fixture's Main.qml plus one render
of its unique payload text, since the literal root type is a plain
Rectangle the shell instantiates everywhere. The test closes the dock at
the end to restore the no-docks baseline for the rest of the suite.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds MCP UI coverage ensuring re-clicking an open app does not create a duplicate dock.

Changes:

  • Adds dock, host, payload, and active-app assertions.
  • Adds timing and cleanup logic.
  • Accidentally duplicates the existing A4 test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/ui-tests.mjs
@romanzac
romanzac marked this pull request as ready for review August 27, 2026 06:40
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.

4 participants