owncast/test/automated/browser
dependabot[bot] bbd6570715
Bump node-fetch from 2.6.2 to 2.6.7 in /test/automated/browser (#1759)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.2 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.2...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-06 17:48:44 -08:00
..
lib Silence the browser test error 2021-11-01 00:40:39 -07:00
screenshots
tests Fix browser name change test not actually changing name 2021-11-16 17:41:31 -08:00
admin.test.js Silence the browser test error 2021-11-01 00:40:39 -07:00
bot-share-search-scrapers.test.js Update OG tags test 2022-01-22 21:10:52 -08:00
chat-embed.test.js
jest.config.json
main.test.js Fix browser name change test not actually changing name 2021-11-16 17:41:31 -08:00
package-lock.json Bump node-fetch from 2.6.2 to 2.6.7 in /test/automated/browser (#1759) 2022-03-06 17:48:44 -08:00
package.json
README.md
run.sh Replace pkger with go:embed for bundling the admin. Closes #844 (#1464) 2021-10-11 14:56:00 -07:00
video-embed.test.js

Automated browser tests

The tests currently address the following interfaces:

  1. The main web frontend of Owncast
  2. The embeddable video player
  3. The embeddable read-only chat
  4. the embeddable read-write chat

Each have a set of test to make sure they load, have the expected elements on the screen, that API requests are successful, and that there are no errors being thrown in the console.

The main web frontend additionally iterates its tests over a set of different device characteristics to verify mobile and tablet usage and goes through some interactive usage of the page such as changing their name and sending a chat message by clicking and typing.

While it emulates the user agent, screen size, and touch features of different devices, they're still just a copy of Chromium running and not a true emulation of these other devices. So any "it breaks only on Safari" type bugs will not get caught.

It can't actually play video, so anything specific about video playback cannot be verified with these tests.

Setup

npm install

Run

./run.sh

Screenshots

After the tests finish a set of screenshots will be saved into the screenshots directory to aid in troubleshooting or sanity checking different viewport sizes. three