Skip to content

Commit c48518b

Browse files
committed
feat(specs): add playwright workflows
1 parent 02f5733 commit c48518b

7 files changed

Lines changed: 62 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Run a single project
2+
command: "npx playwright test --project={{projectName}}"
3+
arguments:
4+
- name: projectName
5+
- description: "The project name."
6+
tags:
7+
- playwright
8+
description: "Run tests in a project."
9+
source_url: "https://playwright.dev/docs/test-advanced#projects"
10+
author: DominusKelvin
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Run a single test file
2+
command: "npx playwright test {{pathToFile}}"
3+
arguments:
4+
- name: pathToFile
5+
- description: "The path to the test file to run."
6+
tags:
7+
- playwright
8+
description: "Runs a single test file."
9+
source_url: "https://playwright.dev/docs/running-tests"
10+
author: DominusKelvin
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Run all tests
2+
command: "npx playwright test"
3+
tags:
4+
- playwright
5+
description: "Runs all tests"
6+
source_url: "https://playwright.dev/docs/intro#running-the-example-test"
7+
author: DominusKelvin
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Run test in a specific browser
2+
command: "npx playwright test --browser={{browser}}"
3+
arguments:
4+
- name: browser
5+
- description: "Browser to run tests in(either chromium, firefox, webkit or all)."
6+
- default_value: "all"
7+
tags:
8+
- playwright
9+
description: "Run tests in a specific browser"
10+
source_url: "https://playwright.dev/docs/test-cli#reference"
11+
author: DominusKelvin
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Run test in debug mode
2+
command: "npx playwright test --debug"
3+
tags:
4+
- playwright
5+
description: "Runs tests in debug mode."
6+
source_url: "https://playwright.dev/docs/debug#--debug"
7+
author: DominusKelvin
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Run test with the title
2+
command: 'npx playwright test --g "{{testTitle}}"'
3+
arguments:
4+
- name: testTitle
5+
- description: "The title of the test to run."
6+
tags:
7+
- playwright
8+
description: "Runs test with the title."
9+
source_url: "https://playwright.dev/docs/test-cli#reference"
10+
author: DominusKelvin
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Run tests in headed mode
2+
command: "npx playwright test --headed"
3+
tags:
4+
- playwright
5+
description: "Runs tests in headed mode."
6+
source_url: "https://playwright.dev/docs/test-cli#reference"
7+
author: DominusKelvin

0 commit comments

Comments
 (0)