Skip to content

feat(workbench): add Background Job and Workbench Job test coverage (closes #302)#336

Merged
ian-flores merged 5 commits into
mainfrom
bot-implement-issue-302-32174ba282798a98
Jun 2, 2026
Merged

feat(workbench): add Background Job and Workbench Job test coverage (closes #302)#336
ian-flores merged 5 commits into
mainfrom
bot-implement-issue-302-32174ba282798a98

Conversation

@posit-vip-triage

Copy link
Copy Markdown
Contributor

Closes #302
Implements the plan from #316

Summary

Adds BDD test coverage for Workbench Background Jobs and Workbench Jobs (Launcher jobs) in RStudio Pro sessions — the gap identified in issue #302.

What changed

  • src/vip_tests/workbench/test_jobs.feature — two new @workbench scenarios:
    • Background Job runs and completes — submits an inline R script via the Background Jobs pane and verifies it produces expected output
    • Workbench Job runs and completes — submits the same script as a Launcher job via the Workbench Jobs pane
  • src/vip_tests/workbench/test_jobs.py — Playwright step definitions following the four-layer architecture; defensive pytest.skip guards when either Jobs UI is absent in the deployment
  • src/vip_tests/workbench/pages/rstudio_session.py — job-related selectors for Background Jobs and Workbench Jobs panes added to RStudioSession
  • src/vip/config.pyjob_timeout field added to WorkbenchConfig (default 120 s); configurable via [workbench] job_timeout in vip.toml so operators can adapt to slow clusters without code changes
  • selftests/test_config.py — three tests covering job_timeout default, explicit value, and from-dict round-trip

Config option

[workbench]
job_timeout = 300  # seconds (default: 120)

Demo

See validation_docs/demo-bot-implement-issue-302.md for the full demo.

New config tests

selftests/test_config.py::TestWorkbenchConfig::test_job_timeout_default PASSED
selftests/test_config.py::TestWorkbenchConfig::test_job_timeout_from_dict PASSED
selftests/test_config.py::TestWorkbenchConfig::test_job_timeout_default_from_dict PASSED

Generated by Implement an approved plan PR for issue #316 · ● 50.3M ·

…loses #302)

- Add two @workbench BDD scenarios for job execution in RStudio Pro
- Background Job and Workbench Job (Launcher) scenarios follow four-layer
  architecture with Playwright-driven step definitions
- Add configurable job_timeout to WorkbenchConfig (default 120s)
  via [workbench] job_timeout in vip.toml
- Add RStudio job pane selectors to RStudioSession page object
- Add selftests for job_timeout config field

Implements the plan from #316

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: ian-flores <18703558+ian-flores@users.noreply.github.com>
@ian-flores ian-flores merged commit 9a9de55 into main Jun 2, 2026
28 checks passed
@ian-flores ian-flores deleted the bot-implement-issue-302-32174ba282798a98 branch June 2, 2026 15:52
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-02 15:52 UTC

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.

feat(workbench): cover Workbench Jobs and Background Jobs

2 participants