-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow cases - playwright anc cypress artifacts, cypress 13 video r…
…ecording enabled, cypress 12 video recording (fefault), playwright shell, artifacts double asterisk,
- Loading branch information
1 parent
c3e4c00
commit 5968f94
Showing
3 changed files
with
223 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,48 @@ metadata: | |
name: playwright-workflow-smoke-v1.32.3 | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
content: | ||
git: | ||
uri: https://github.com/kubeshop/testkube | ||
revision: main | ||
paths: | ||
- test/playwright/executor-tests/playwright-project | ||
container: | ||
resources: | ||
requests: | ||
cpu: 2 | ||
memory: 2Gi | ||
workingDir: /data/repo/test/playwright/executor-tests/playwright-project | ||
steps: | ||
- name: Install dependencies | ||
run: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: | ||
- npm | ||
args: | ||
- ci | ||
- name: Run tests | ||
run: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: | ||
- "npx" | ||
args: | ||
- "--yes" | ||
- "[email protected]" | ||
- "test" | ||
- name: Save artifacts | ||
workingDir: /data/repo/test/playwright/executor-tests/playwright-project | ||
artifacts: | ||
paths: | ||
- playwright-report/**/* | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: playwright-workflow-smoke-v1.32.3-custom-report-dir | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
content: | ||
git: | ||
|
@@ -36,11 +78,98 @@ spec: | |
- "test" | ||
- "--output" | ||
- "/data/artifacts" | ||
env: | ||
- name: PLAYWRIGHT_HTML_REPORT | ||
value: /data/artifacts/playwright-report | ||
steps: | ||
- name: Save artifacts | ||
workingDir: /data/artifacts | ||
artifacts: | ||
paths: | ||
- '**/*' | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: playwright-workflow-smoke-v1.32.3-shell | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
content: | ||
git: | ||
uri: https://github.com/kubeshop/testkube | ||
revision: main | ||
paths: | ||
- test/playwright/executor-tests/playwright-project | ||
container: | ||
resources: | ||
requests: | ||
cpu: 2 | ||
memory: 2Gi | ||
workingDir: /data/repo/test/playwright/executor-tests/playwright-project | ||
steps: | ||
- name: Install dependencies | ||
run: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: | ||
- npm | ||
args: | ||
- ci | ||
- name: Run tests | ||
shell: "npx --yes [email protected] test --output /data/artifacts && cd /data/artifacts && ls -lah" | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
env: | ||
- name: PLAYWRIGHT_HTML_REPORT | ||
value: /data/artifacts/playwright-report | ||
steps: | ||
- name: Save artifacts | ||
workingDir: /data/artifacts | ||
artifacts: | ||
paths: | ||
- '**/*' | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
metadata: | ||
name: playwright-workflow-smoke-artifacts-double-asterisk | ||
labels: | ||
core-tests: workflows | ||
spec: | ||
content: | ||
git: | ||
uri: https://github.com/kubeshop/testkube | ||
revision: main | ||
paths: | ||
- test/playwright/executor-tests/playwright-project | ||
container: | ||
resources: | ||
requests: | ||
cpu: 2 | ||
memory: 2Gi | ||
workingDir: /data/repo/test/playwright/executor-tests/playwright-project | ||
steps: | ||
- name: Install dependencies | ||
run: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: | ||
- npm | ||
args: | ||
- ci | ||
- name: Run tests | ||
run: | ||
image: mcr.microsoft.com/playwright:v1.32.3-focal | ||
command: | ||
- "npx" | ||
args: | ||
- "--yes" | ||
- "[email protected]" | ||
- "test" | ||
- name: Save artifacts | ||
workingDir: /data/artifacts | ||
artifacts: | ||
paths: | ||
- '*' | ||
- /data/repo/**/playwright-report/**/* | ||
--- | ||
--- | ||
apiVersion: testworkflows.testkube.io/v1 | ||
kind: TestWorkflow | ||
|