Skip to content

Fix hardcoded URL in Playwright test - #123

Open
brettfxio wants to merge 2 commits into
mainfrom
fix-test-url-fragility-16092872938130470184
Open

Fix hardcoded URL in Playwright test#123
brettfxio wants to merge 2 commits into
mainfrom
fix-test-url-fragility-16092872938130470184

Conversation

@brettfxio

Copy link
Copy Markdown
Contributor

The test tests/dump_dom.spec.js was failing because it used a hardcoded absolute URL that didn't match the environment's configuration (specifically the empty baseurl in _config.yml and the standard baseURL in playwright.config.js). By switching to a relative path /, the test now correctly navigates to the application root regardless of the environment setup. All tests in the suite were verified to pass.


PR created automatically by Jules for task 16092872938130470184 started by @brettfxio

Changed hardcoded 'http://localhost:4000/engine/' to '/' in `tests/dump_dom.spec.js` to ensure it uses the `baseURL` from `playwright.config.js`. This resolves timeout issues in environments where the port or base path might differ.

Co-authored-by: brettfxio <105930054+brettfxio@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Updated `tests/dump_dom.spec.js` to use a relative URL (`/`) instead of hardcoded `localhost:4000/engine/`.
- Increased global Playwright test timeout to 120s and retries to 3 in CI to handle slow WebGL/3D asset loading.
- Set local retries to 1 to improve robustness during development.

Co-authored-by: brettfxio <105930054+brettfxio@users.noreply.github.com>
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.

1 participant