[Bug] New Session dialog dismiss helpers are no-ops on Workbench 2026.05+

Open Beginner friendly
#868 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
playwright, python
Domain
testing-qa

Research direction

Start with src/vip/clients/workbench_pages.py and the four named dismiss helpers in workbench/test_ide_launch.py, test_chronicle.py, test_ide_extensions.py, and test_git_ops.py; compare the existing close strategy with the dialog behavior described for Workbench 2026.11.1. Update the helpers or selector and its stale comment, then run the relevant self-tests and verify dismissal on both dialog generations.

Written by the indexing model from the issue text.

Description

team: workbench
What happened?

NewSessionDialog.CANCEL_BUTTON is still #modalCancelBtn (src/vip/clients/workbench_pages.py:58). That element doesn't exist in the redesigned New Session dialog, but four step helpers still use it as their only way to close the dialog:

  • workbench/test_ide_launch.py::_dismiss_dialog_and_skip
  • workbench/test_chronicle.py::_dismiss_dialog_and_skip
  • workbench/test_ide_extensions.py::_dismiss_dialog_and_skip
  • workbench/test_git_ops.py::_cancel_dialog_and_skip

Each one guards the click with if cancel.count() > 0. On 2026.05+ that means it silently does nothing: the dialog stays open and the scenario records not_applicable.

Impact today: low. The skip outcome is still correct, and page is function-scoped, so the open dialog dies with its context. Any step added after a dismiss would run against an open modal, though.

The fix was started but never finished:

  • get_new_session_dialog_close_strategy in workbench_pages.py (Escape for 2026.05.0+) was built for this, but nothing outside selftests/test_pages.py calls it.
  • Its comment says wiring it in is "issue #409's job". #409 is the closed CI/CD epic, so the follow-up looks lost.
  • The same comment says the new dialog has no Cancel button and only Escape closes it. That isn't true on 2026.11.1: a plain Cancel button is there and closes the dialog.

Related: #415, the same stale selector in test_runtime_versions. It was closed when those scenarios were retired in #516.

Evidence

Tested on Workbench 2026.11.1+204.pro2, a fresh Ubuntu 24.04 install, with headless Chromium through Playwright:

  • With the dialog open ([data-slot='dialog-title'] visible), locator("#modalCancelBtn").wait_for(state="attached") times out after 3 s.
  • Clicking [role='dialog'] button:text-is('Cancel') closes the dialog: [role='dialog'] reaches hidden within 5 s.
Suggested fix

Either of these, plus correcting the comment and its issue reference:

  • Have the four helpers call get_new_session_dialog_close_strategy(<workbench version>).
  • Or widen the selector, for example CANCEL_BUTTON = "#modalCancelBtn, [role='dialog'] button:text-is('Cancel')", which covers both dialog generations.

VIP version: main @ d5120fe7 (code read); posit-vip 2026.11.2 (run).

Dominant language
Python
Stars
9
Forks
1
Avg merge
15h 31m
Merged PRs (30d)
44

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/vip

All issues in posit-dev/vip

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.