posit-dev / posit-dev/positron

Automated test for `browseURL` in Workbench

Open
#10,941 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: workbench
Dominant language
TypeScript
Stars
4.3k
Forks
183
Avg merge
1d 11h
Merged PRs (30d)
206

Description

Once #10893 is fixed, it'd be a good candidate for test automation.

I think what's happening here is that, if you have a real HTML file at some path like "workspaces/quarto_basic/quarto_basic.html", then:

  • on desktop, browseURL("workspaces/quarto_basic/quarto_basic.html") correctly opens up the HTML file in your default app (which is almost certainly a browser) ✅
  • on Workbench, browseURL("workspaces/quarto_basic/quarto_basic.html") does nothing 😩

Originally posted by @juliasilge in #10893

Contributor guide

Open the 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.

Research direction

Start by reading the behavior and proposed fix in #10893, then investigate the Workbench entry point for browseURL. Add an automated regression test showing that browseURL opens a real HTML file in Workbench, and verify the test passes once #10893 is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.