Skip to content

GitHub action that runs very basic smoke tests for your single-page apps with Puppeteer

Notifications You must be signed in to change notification settings

GabrielCousin/spa-smoke-test-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

SPA smoke-test 🚭 action

GitHub action that runs very basic smoke tests for your single-page apps with Puppeteer.

Usage

on:
  deployment_status:

jobs:
  spa_smoke_test:
    runs-on: ubuntu-latest
    if: github.event.deployment_status.state == 'success'
    steps:
    - name: Smoke test after deploy
      id: spa-smoke-test
      uses: GabrielCousin/spa-smoke-test-action@0.3.0
      with:
        # The URL of the single-page app
        target-url: "https://your-url.tld"

        # The CSS selector for the element to find
        target-selector: "#elementToWaitFor"

        # Some request URL to spy - will not check against any response
        request-url: "https://your-endpoint.tld"

        # Enable HTTP Basic Authentication
        http-auth-username: "USERNAME"
        http-auth-password: "PASSWORD"

        # Optional wait period before starting the test
        wait-on-start: 1000

About

GitHub action that runs very basic smoke tests for your single-page apps with Puppeteer

Resources

Stars

Watchers

Forks

Packages

No packages published