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

Aperta Adatta ai principianti
#868 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
80/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
playwright, python
Ambito
testing-qa

Direzione di ricerca

Inizia da src/vip/clients/workbench_pages.py e dai quattro helper di chiusura indicati in workbench/test_ide_launch.py, test_chronicle.py, test_ide_extensions.py e test_git_ops.py; confronta la strategia di chiusura esistente con il comportamento della finestra di dialogo descritto per Workbench 2026.11.1. Aggiorna gli helper o il selettore e il relativo commento obsoleto, quindi esegui gli autotest pertinenti e verifica la chiusura di entrambe le generazioni della finestra di dialogo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Python
Stelle
9
Fork
1
Merge medio
15h 31m
PR unite (30g)
44

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/vip

Tutte le issue di posit-dev/vip

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.