Skip to content

Commit

Permalink
Merge pull request #142 from vtex-apps/feature/cypress
Browse files Browse the repository at this point in the history
Enable cypress tests for quickorder
  • Loading branch information
Syed-Vtex authored Nov 24, 2022
2 parents 5240e6d + 9f32402 commit 5d6d67d
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qe-pull-request-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
nodeSonar: true
nodeSonarProjectKey: vtex-apps_quickorder
nodeSonarOrganization: vtex-apps
cypress: false
cypress: true
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
sonarToken: ${{ secrets.SONAR_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qe-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
nodeSonar: true
nodeSonarProjectKey: vtex-apps_quickorder
nodeSonarOrganization: vtex-apps
cypress: false
cypress: true
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
sonarToken: ${{ secrets.SONAR_TOKEN }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/qe-schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: '[SCH] Quality Engineering'

on:
schedule:
- cron: '45 23 * * MON-FRI'

jobs:
quality-engineering:
name: QE
uses: vtex-apps/usqa/.github/workflows/quality-engineering.yml@v2
with:
cypress: true
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
cypressJson: ${{ secrets.VTEX_QE }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- Added cypress tests

### Added

- Added dispatch workflow for cypress

### Fixed
Expand Down
90 changes: 90 additions & 0 deletions cy-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
base:
secrets:
enabled: true
name: VTEX_QE
vtex:
account: productusqa
id: 2001459804
domain: myvtex.com
urlExternalSeller: https://productusqaseller.myvtex.com
vtexIdUrl: https://vtexid.vtex.com.br/api/vtexid/pub/authenticate/default
orderFormConfig: https://productusqa.vtexcommercestable.com.br/api/checkout/pvt/configuration/orderForm
twilio:
enabled: true
jira:
enabled: true
account: vtex-dev
board: QUICKORDER
issueType: Bug
priority: High
testing: true
slack:
enabled: false
channel: some-channel
cypress:
devMode: false
runHeaded: false
getCookies: true
maxJobs: 2
quiet: true
projectId: oph4td
video: true
videoCompression: 40
videoUploadOnPasses: false
screenshotOnRunFailure: true
trashAssetsBeforeRuns: false
viewportWidth: 1440
viewportHeight: 900
defaultCommandTimeout: 25000
requestTimeout: 25000
watchForFileChanges: false
pageLoadTimeout: 45000
browser: chrome
chromeWebSecurity: false
sorry: false
stateFiles: []

workspace:
# If random a new name will be generated with prefix (ie b2b1234567)
name: random
prefix: quickorder
# If enabled it'll link the app for integration tests with PR code
linkApp:
enabled: true
logOutput:
enabled: false
installApps: []
removeApps: []
wipe:
enabled: true
stopOnFail: false
specs:
- cypress-shared/integration/quick-order/wipe.spec.js
teardown:
enabled: false

strategy:
# The strategies must be in order, with dependent tests last
graphql:
enabled: true
sendDashboard: true
hardTries: 1
stopOnFail: false
parallel: false
specs:
- cypress-shared/integration/quick-order/1.1-graphql.spec.js
quickorderTests:
enabled: true
sendDashboard: true
hardTries: 3
stopOnFail: false
parallel: true
specs:
- cypress-shared/integration/quick-order/1.2-skucode_quantity.spec.js
- cypress-shared/integration/quick-order/1.3-upload_csv.spec.js
- cypress-shared/integration/quick-order/1.4-one_by_one.spec.js
- cypress-shared/integration/quick-order/1.5-categories.spec.js
dependency:
- cypress-shared/integration/quick-order/1.1-graphql.spec.js

0 comments on commit 5d6d67d

Please sign in to comment.