commaai / commaai/connect

automated testing improvements

Open
#406 0 comments 1 reaction 0 assignees View on GitHub
CI / testing
Dominant language
JavaScript
Stars
134
Forks
95
Avg merge
15h 27m
Merged PRs (30d)
25

Description

We already have some tests using Chrome/Puppeteer, but we should test more features and across Chrome and Firefox (and Safari, if possible).

https://vitest.dev/guide/browser.html

- Testing environments
- [ ] firefox
- [ ] service worker and updates between versions (begin by writing a wrapper script around docker to launch web server for given version)
- [ ] test video playback
- [ ] test offline behaviour

**Testing meta**
- [ ] replace all `await sleep` with `page.waitForX`
- [ ] mock API so that tests are not flaky (and can be extended for more than demo scenarios)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.