Fix hardcoded URL in Playwright test - #123
Conversation
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>
|
👋 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 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>
The test
tests/dump_dom.spec.jswas failing because it used a hardcoded absolute URL that didn't match the environment's configuration (specifically the emptybaseurlin_config.ymland the standardbaseURLinplaywright.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