Skip to content

fix: remove leftover suite-orig.robot from web-carinsurance - #20

Merged
simonmeggle merged 1 commit into
mainfrom
fix/carinsurance-suite-orig
Jul 22, 2026
Merged

fix: remove leftover suite-orig.robot from web-carinsurance#20
simonmeggle merged 1 commit into
mainfrom
fix/carinsurance-suite-orig

Conversation

@simonmeggle

Copy link
Copy Markdown
Contributor

Summary

  • examples/web-carinsurance shipped both suite.robot and a leftover suite-orig.robot (the pre-refactor original).
  • Robot Framework's robot . (used by CI's test job and every os/<slug> provisioning container) auto-discovers every .robot file in the target directory as its own suite, so suite-orig.robot always ran too, alongside suite.robot.
  • suite-orig.robot hardcodes New Browser ... headless=false, ignoring ROBOTMK_HEADLESS_HOST (unlike suite.robot, which goes through Resources/BrowserCommon.resource's env-var-aware Browser Init keyword). In any desktop-less environment this tries to open a real browser window with no display, and fails.
  • Removes suite-orig.robot from both the generated output and its Copier source (_dev/_examples/web-carinsurance/template/).

Test plan

  • Regenerated examples/web-carinsurance via _dev/scripts/generate-all.sh web-carinsurance — confirmed only suite.robot is produced now.
  • Ran robot --dryrun . in examples/web-carinsurance before and after: before, RF discovered two suites (Web-Carinsurance.Suite and Web-Carinsurance.Suite-Orig); after, only one (Web-Carinsurance.Suite).

🤖 Generated with Claude Code

examples/web-carinsurance shipped both suite.robot and suite-orig.robot.
Robot Framework's `robot .` (used by both CI and every os/<slug> container)
auto-discovers every .robot file in the target directory as its own suite,
so suite-orig.robot always ran alongside suite.robot.

suite-orig.robot is the pre-refactor original, hardcoding
`New Browser headless=false` instead of honoring ROBOTMK_HEADLESS_HOST like
suite.robot's BrowserCommon.resource does. In any environment without a
desktop (bare CI runners, os/* provisioning containers, headless
devcontainers), that hardcoded headless=false tries to open a real browser
window with no display to render to, and fails. Removing it — suite.robot
already covers the same test case correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@simonmeggle
simonmeggle marked this pull request as ready for review July 22, 2026 12:42
@simonmeggle
simonmeggle merged commit d0b442a into main Jul 22, 2026
7 checks passed
@simonmeggle
simonmeggle deleted the fix/carinsurance-suite-orig branch July 22, 2026 12:42
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.

2 participants