Skip to content
Snippets Groups Projects
Unverified Commit a38eaa05 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

[E2E] Simplify CircleCI Cypress workflow (#23123)

parent 3ad532b9
No related branches found
No related tags found
No related merge requests found
...@@ -908,6 +908,9 @@ jobs: ...@@ -908,6 +908,9 @@ jobs:
test-files: test-files:
type: string type: string
default: "" default: ""
grep:
type: string
default: ""
qa-db: qa-db:
type: boolean type: boolean
default: false default: false
...@@ -944,6 +947,7 @@ jobs: ...@@ -944,6 +947,7 @@ jobs:
# Make both `test-files`, `source-folder` and `currents-record` parameters optional. Translates to: if `parameter` => run associated flag (`--spec`, `--folder` and `--key $CURRENTS_KEY --record` respectively) # Make both `test-files`, `source-folder` and `currents-record` parameters optional. Translates to: if `parameter` => run associated flag (`--spec`, `--folder` and `--key $CURRENTS_KEY --record` respectively)
command: | command: |
run test-cypress-run \ run test-cypress-run \
<<# parameters.grep >> --env << parameters.grep >> <</ parameters.grep >> \
<<# parameters.test-files >> --spec << parameters.test-files >> <</ parameters.test-files >> \ <<# parameters.test-files >> --spec << parameters.test-files >> <</ parameters.test-files >> \
<<# parameters.source-folder >> --folder << parameters.source-folder >> <</ parameters.source-folder >> <<# parameters.source-folder >> --folder << parameters.source-folder >> <</ parameters.source-folder >>
after-steps: after-steps:
...@@ -1249,7 +1253,7 @@ workflows: ...@@ -1249,7 +1253,7 @@ workflows:
- fe-tests-cypress: - fe-tests-cypress:
matrix: matrix:
parameters: parameters:
edition: ["ee", "oss"] edition: ["ee"]
folder: folder:
[ [
"admin", "admin",
...@@ -1276,6 +1280,22 @@ workflows: ...@@ -1276,6 +1280,22 @@ workflows:
- run-snowplow-micro - run-snowplow-micro
- wait-for-databases - wait-for-databases
- fe-tests-cypress:
matrix:
parameters:
edition: ["oss"]
name: e2e-tests-<< matrix.edition >>
requires:
- build-uberjar-<< matrix.edition >>
- snowplow-deps
cypress-group: e2e-tests-<< matrix.edition >>
grep: "grepTags=@OSS,grepFilterSpecs=true"
qa-db: true
snowplow: true
before-steps:
- run-snowplow-micro
- wait-for-databases
- fe-tests-cypress: - fe-tests-cypress:
name: percy-visual-tests-<< matrix.edition >> name: percy-visual-tests-<< matrix.edition >>
requires: requires:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment