playwright-cucumber-ts-steps 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,34 +104,29 @@ npx playwright test
|
|
|
104
104
|
|
|
105
105
|
We support a **Friendly Syntax** for filtering tests via the `TAGS` environment variable.
|
|
106
106
|
|
|
107
|
-
| Logic | Symbol
|
|
108
|
-
| ------- |
|
|
109
|
-
| **
|
|
110
|
-
|
|
|
111
|
-
| **MIX** | `,`
|
|
107
|
+
| Logic | Symbol | Example | Description |
|
|
108
|
+
| ------- | ------ | ---------------- | ------------------------------------------------ |
|
|
109
|
+
| **AND** | `,` | `@login,@signup` | Run tests that have `@login` **AND** `@signup`. |
|
|
110
|
+
| |
|
|
111
|
+
| **MIX** | `,` | `@a,@b, @c` | Run tests with (`@a` AND `@b`) **OR** just `@c`. |
|
|
112
112
|
|
|
113
113
|
**Usage:**
|
|
114
114
|
|
|
115
115
|
```bash
|
|
116
116
|
# Run only smoke tests
|
|
117
117
|
TAGS='@smoke' npx playwright test
|
|
118
|
+
OR
|
|
118
119
|
npx playwright test -g "@smoke"
|
|
119
120
|
|
|
120
121
|
# Run smoke tests that are also critical
|
|
121
|
-
TAGS='@smoke
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
# Run login OR regression tests
|
|
125
|
-
TAGS='@login,@regression' npx playwright test
|
|
126
|
-
|
|
127
|
-
npx playwright test -g "@login|@regression"
|
|
122
|
+
TAGS='@smoke,@critical' npx playwright test
|
|
123
|
+
OR
|
|
124
|
+
npx playwright test -g "@smoke|@critical"
|
|
128
125
|
|
|
129
126
|
```
|
|
130
127
|
|
|
131
128
|
_(On Windows PowerShell, use `$env:TAGS="@smoke"; npx playwright test`)_
|
|
132
129
|
|
|
133
|
-
````
|
|
134
|
-
|
|
135
130
|
**In your Test Runner (`tests/bdd.spec.ts`):**
|
|
136
131
|
|
|
137
132
|
```typescript
|
|
@@ -142,7 +137,7 @@ import { runTests } from "playwright-cucumber-ts-steps";
|
|
|
142
137
|
|
|
143
138
|
// OPTION 2: Run only Smoke tests
|
|
144
139
|
runTests("features/*.feature", { tags: "@smoke" });
|
|
145
|
-
|
|
140
|
+
```
|
|
146
141
|
|
|
147
142
|
---
|
|
148
143
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-cucumber-ts-steps",
|
|
3
3
|
"description": "A collection of reusable Playwright step definitions for Cucumber in TypeScript, designed to streamline end-to-end testing across web, API, and mobile applications.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|