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

Commit bc4bd74

Browse files
committed
fix: split title upgrade for #109
1 parent a8b8b7d commit bc4bd74

File tree

5 files changed

+13610
-15
lines changed

5 files changed

+13610
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,24 +412,24 @@ jobs:
412412
--env grepTags="@sanity+@screen-b" \
413413
--expect-exactly expects/inherits-tag-spec.json
414414
415-
- name : explicit not tags prevent test from running
415+
- name: explicit not tags prevent test from running
416416
run: |
417417
npx cypress-expect \
418418
--config specPattern="**/explicit-spec.js" \
419419
--env grepTags="@tag1 --@tag2" \
420420
--expect-exactly expects/explicit-spec.json
421421
422-
- name : explicit not tags work with omitFiltered
422+
- name: explicit not tags work with omitFiltered
423423
run: |
424424
npx cypress-expect \
425425
--config specPattern="**/explicit-spec.js" \
426426
--env grepTags="@tag1 --@tag2",grepOmitFiltered=true \
427427
--expect-exactly expects/explicit-omit-spec.json
428-
428+
429429
- name: filter specs when using dynamic names 🧪
430430
run: |
431431
npx cypress-expect \
432-
--config testFiles="**/dynamic/*.spec.js" \
432+
--config specPattern="**/dynamic/*.spec.js" \
433433
--env grepTags="@smoke",grepFilterSpecs=true \
434434
--expect-exactly expects/dynamic-spec.json
435435

cypress/integration/dynamic/test1.spec.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
const parameterized = 'parameterized'
44

55
describe('should run these tests', () => {
6-
it(`${parameterized} title`, { tags: '@smoke' }, () => {
7-
})
6+
it(`${parameterized} title`, { tags: '@smoke' }, () => {})
87

9-
it('seperated' + ' title', { tags: '@smoke' }, () => {
10-
})
11-
});
8+
it('split' + ' title', { tags: '@smoke' }, () => {})
9+
})

cypress/integration/dynamic/test2.spec.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
const parameterized = 'parameterized'
44

55
describe('should filter out this spec', () => {
6-
it(`${parameterized} title`, { tags: '@sanity' }, () => {
7-
})
6+
it(`${parameterized} title`, { tags: '@sanity' }, () => {})
87

9-
it('seperated' + ' title', { tags: '@sanity' }, () => {
10-
})
11-
});
8+
it('split' + ' title', { tags: '@sanity' }, () => {})
9+
})

expects/dynamic-spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"should run these tests": {
33
"parameterized title": "passed",
4-
"seperated title": "passed"
4+
"split title": "passed"
55
}
66
}

0 commit comments

Comments
 (0)