Skip to content

Commit

Permalink
Remove redundant accessibility tests
Browse files Browse the repository at this point in the history
- Deleted the accessibility test scripts from the Cypress test suite.
- Removed related commands from package.json and Azure Pipelines YAML configuration.
- This cleanup streamlines the testing process by eliminating redundant tests and associated artifacts.
  • Loading branch information
will0684 committed Jan 21, 2025
1 parent ea807dd commit 238bcac
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 73 deletions.
25 changes: 0 additions & 25 deletions AzurePipelines/prod-test-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,13 @@ stages:
yarn cypress:run
displayName: "Run Cypress Tests"
- script: |
yarn test:a11y
displayName: "Run A11y Tests"
# Stop the container after tests
- script: |
docker stop app
docker rm app
displayName: "Stop Application Container"
condition: always()
- task: PublishPipelineArtifact@1
displayName: "Store A11y Test Results"
inputs:
targetPath: "cypress/a11y-results"
artifact: "a11y-test-results"
condition: always()

- task: PublishTestResults@2
inputs:
testResultsFormat: "JUnit"
Expand All @@ -149,20 +138,6 @@ stages:
reportDirectory: "**/coverage"
condition: always()

- task: PublishPipelineArtifact@1
displayName: "Store Cypress Screenshots"
inputs:
targetPath: "cypress/screenshots"
artifact: "cypress-screenshots"
condition: always()

- task: PublishPipelineArtifact@1
displayName: "Store Cypress Videos"
inputs:
targetPath: "cypress/videos"
artifact: "cypress-videos"
condition: always()

# - stage: SecurityTest
# displayName: Security Testing
# dependsOn: Build
Expand Down
46 changes: 0 additions & 46 deletions cypress/e2e/a11y/a11y.cy.js

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
"build-storybook": "storybook build",
"test:ci": "jest --ci --reporter=jest-junit --coverage --coverageReporters=cobertura",
"test:unit": "jest --forceExit --detectOpenHandles",
"test:a11y": "cypress run --spec \"cypress/e2e/a11y/**/*.cy.js\"",
"test:a11y:open": "cypress open --config-file=cypress.config.js --e2e \"cypress/e2e/a11y/**/*.cy.js\"",
"test:coverage": "jest --coverage --forceExit",
"cypress:open": "cypress open --config-file=cypress.config.js",
"cypress:run": "cypress run --config-file=cypress.config.js",
Expand Down

0 comments on commit 238bcac

Please sign in to comment.