Skip to content

Commit

Permalink
Experience/15059/smoke GitHub action (#15321)
Browse files Browse the repository at this point in the history
* 15059 - added github action workflow for frontend smoke tests to be run against live data

* 15059 - removed env param

* 15059 - Added pre steps for running smoke tests

* 15059 - updates to github action for smoke e2e

* 15059 - updates to github action for smoke e2e

* 15059 - updated to use secrets

* 15059 - Added on workflow_dispatch

* 15059 - Fixed merge conflicts
  • Loading branch information
penny-lischer authored and jack-h-wang committed Jul 26, 2024
1 parent 8ef6fa9 commit fe7e76f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/start_frontend_smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: "Start Frontend Smoke Tests"

on:
workflow_dispatch:
inputs:
username:
description: 'Administrator username for the environment chosen:'
required: true
type: string
password:
description: 'Administrator password for the environment chosen:'
required: true
type: string

defaults:
run:
working-directory: frontend-react
shell: bash

env:
TEST_ADMIN_USERNAME: ${{ secrets.TEST_ADMIN_USERNAME }}
TEST_ADMIN_PASSWORD: ${{ secrets.TEST_ADMIN_PASSWORD }}
TEST_SENDER_USERNAME: ${{ secrets.TEST_SENDER_USERNAME }}
TEST_SENDER_PASSWORD: ${{ secrets.TEST_SENDER_PASSWORD }}
TEST_RECEIVER_USERNAME: ${{ secrets.TEST_RECEIVER_USERNAME }}
TEST_RECEIVER_PASSWORD: ${{ secrets.TEST_RECEIVER_PASSWORD }}

jobs:
run_smoke:
name: Frontend Smoke Tests
Expand All @@ -36,14 +35,10 @@ jobs:
- name: Install Playwright
run: npx playwright install --with-deps
- name: "Run frontend smoke tests"
env:
TEST_ADMIN_USERNAME: ${{ github.event.inputs.username }}
TEST_ADMIN_PASSWORD: ${{ github.event.inputs.password }}
run: |
echo "::group::E2E smoke tests"
yarn run test:e2e-smoke
echo "::endgroup::"
- name: "Store E2E Results"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b
with:
Expand Down

0 comments on commit fe7e76f

Please sign in to comment.