Skip to content

Commit

Permalink
Add smoke pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
RioKnightleyNHS committed Feb 19, 2024
1 parent 563e9b4 commit 7f93203
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 21 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/ui-deploy-feature-to-sandbox-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@ on:
workflow_dispatch:
inputs:
build_branch:
description: "Feature branch to push."
description: 'Feature branch to push.'
required: true
type: "string"
default: "main"
type: 'string'
default: 'main'
sandbox:
description: "Which Sandbox to push to."
description: 'Which Sandbox to push to.'
required: true
type: "string"
default: "ndr"
type: 'string'
default: 'ndr'
environment:
description: "Which Environment settings to use."
description: 'Which Environment settings to use.'
required: true
type: "string"
default: "development"
type: 'string'
default: 'development'
workflow_call:
inputs:
build_branch:
description: "Feature branch to push."
description: 'Feature branch to push.'
required: true
type: "string"
default: "main"
type: 'string'
default: 'main'
sandbox:
description: "Which Sandbox to push to."
description: 'Which Sandbox to push to.'
required: true
type: "string"
default: "ndr"
type: 'string'
default: 'ndr'
environment:
description: "Which Environment settings to use."
description: 'Which Environment settings to use.'
required: true
type: "string"
default: "development"
type: 'string'
default: 'development'
secrets:
AWS_ASSUME_ROLE:
required: true
Expand All @@ -45,7 +45,6 @@ permissions:
contents: read # This is required for actions/checkout

jobs:

react_testing_job:
name: Run UI Unit Tests
uses: ./.github/workflows/base-jest-test.yml
Expand All @@ -60,4 +59,17 @@ jobs:
environment: ${{ inputs.environment }}
sandbox: ${{ inputs.sandbox }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

smoketest:
uses: ./.github/workflows/ui-smoketest-base.yml
needs: ['deploy_ui']
with:
build_branch: ${{github.event.pull_request.head.ref}}
environment: development
sandbox: ndr-dev
aws_region: ${{ vars.AWS_REGION }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
CYPRESS_USERNAME: ${{ secrets.CYPRESS_USERNAME }}
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('GP Workflow: View Lloyd George record', () => {
cy.deleteItemFromDynamoDb(tableName, dbItem.ID);
});

it(
it.skip(
'[Smoke] non-BSOL GP ADMIN user can download and delete the Lloyd George document of an active patient',
{ tags: 'smoke', defaultCommandTimeout: 20000 },
() => {
Expand Down

0 comments on commit 7f93203

Please sign in to comment.