Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterekepeter/test-with-browser
Experimental
https://github.com/peterekepeter/test-with-browser
Last synced: 10 days ago
JSON representation
Experimental
- Host: GitHub
- URL: https://github.com/peterekepeter/test-with-browser
- Owner: peterekepeter
- License: mit
- Created: 2024-08-10T20:48:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-11T20:12:02.000Z (5 months ago)
- Last Synced: 2024-11-13T03:48:11.876Z (2 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Test with browser
[![CI](https://github.com/peterekepeter/test-with-browser/actions/workflows/ci.yml/badge.svg)](https://github.com/peterekepeter/test-with-browser/actions/workflows/ci.yml)
Tests a website at given url for errors.
## Example usage
You can test a deployed web application by giving the URL to it, assuming
that it's running somewhere.```yaml
steps:
- name: Test Deployed Website
uses: peterekepeter/[email protected]
timeout-minutes: 1
with:
url: 'https://github.com/status'
```For now it's recommended to set an appropriate timeout from github actions.
The testing is supposed to stop when there is no more activity on the page,
but this detection can be flaky.You can also test an html file that was commited to your repo, or a static
web-app that was bundled in a previous step.```yaml
steps:
- name: Test Local HTML File
uses: peterekepeter/[email protected]
timeout-minutes: 1
with:
url: 'file://${{ github.workspace }}/test/static-site/index.html'
```Test will fail if
- there is an HTTP request with an error code 400..599
- console.error was called for any reason## Inputs
### `url`
**Required** The url that should be tested by the browser.