Skip to content

Add CI tests to verify functionality - #8

Merged
github-actions[bot] merged 1 commit into
mainfrom
add-ci-tests-7895021147897671696
Jul 6, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
add-ci-tests-7895021147897671696

Conversation

@axe-fb

@axe-fb axe-fb commented Jul 6, 2026

Copy link
Copy Markdown
Owner

This PR adds a CI testing framework to StepView.

Changes:

  1. New Test Suite: Added tests/test_app.py which uses Playwright and pytest to perform end-to-end testing. It leverages the existing ?debug hooks in app.js to simulate steps and verify UI updates without requiring physical motion or GPS.
  2. CI Integration: Updated .github/workflows/ci.yml to include a test job. This job:
    • Sets up Python 3.11.
    • Installs pytest, pytest-playwright, and Chromium.
    • Starts a local server using python3 -m http.server.
    • Runs the test suite.
  3. Git Configuration: Added .gitignore to prevent Python bytecode (__pycache__) and other testing artifacts from being committed.

Verification:

  • Ran tests locally using pytest tests/test_app.py with a local server; all 6 tests passed.
  • Verified that index.html still loads and all .js files pass node --check.

Closes #5


PR created automatically by Jules for task 7895021147897671696 started by @axe-fb

- Create tests/test_app.py to verify app functionality, including page load, JS errors, step simulation, navigation, and persistence.
- Update .github/workflows/ci.yml to include a 'test' job that runs the new Playwright tests.
- Add .gitignore to exclude Python and testing artifacts.
- Use existing ?debug hooks in the application for testing.

Closes #5

Co-authored-by: axe-fb <33528067+axe-fb@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.

@github-actions
github-actions Bot merged commit 7c38188 into main Jul 6, 2026
3 checks passed
@github-actions
github-actions Bot deleted the add-ci-tests-7895021147897671696 branch July 6, 2026 13:34
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.

Add tests

1 participant