Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit d20f6d1

Browse files
committed
add more e2e tests
1 parent d1ade7a commit d20f6d1

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ jobs:
7979
--env grep=-hello \
8080
--expect-exactly ./expects/no-hello.json
8181
82+
- name: Run tests without "hello" or "works 2" 🧪
83+
run: |
84+
npx cypress-expect run \
85+
--env grep="-hello; -works 2" \
86+
--expect-exactly ./expects/no-hello-no-works2.json
87+
88+
- name: Run tests with "works" or "hello" but without "2" 🧪
89+
run: |
90+
npx cypress-expect run \
91+
--env grep="works; hello; -2" \
92+
--expect-exactly ./expects/works-hello-no-2.json
93+
8294
# check space character
8395
- name: Run tests with "works 2" 🧪
8496
run: |

expects/no-hello-no-works2.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hello world": "pending",
3+
"works": "passed",
4+
"works 2 @tag1": "pending",
5+
"works 2 @tag1 @tag2": "pending",
6+
"works @tag2": "passed"
7+
}

expects/works-hello-no-2.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hello world": "passed",
3+
"works": "passed",
4+
"works 2 @tag1": "pending",
5+
"works 2 @tag1 @tag2": "pending",
6+
"works @tag2": "pending"
7+
}

0 commit comments

Comments
 (0)