Skip to content

Commit 1fd23c9

Browse files
committed
explain the suites
1 parent acadbf8 commit 1fd23c9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,25 @@ The "html" block is optional.
5252

5353
Note: after extracting the tests, this preprocessor sets [@cypress/fiddle](https://github.com/cypress-io/cypress-fiddle) to run them.
5454

55+
### Suites
56+
57+
To create suites of tests, use `/` to separate the suite name from the test name. Tests with the same suite name are grouped together automatically.
58+
59+
<!-- fiddle TodoMVC / loads -->
60+
```js
61+
cy.visit('/')
62+
```
63+
<!-- fiddle-end -->
64+
65+
then some time later
66+
67+
<!-- fiddle TodoMVC / adds items -->
68+
```js
69+
cy.visit('/')
70+
cy.get('.new-todo').type('write tests{enter}')
71+
```
72+
<!-- fiddle-end -->
73+
5574
## Examples
5675

5776
- [cypress-book-todomvc](https://github.com/bahmutov/cypress-book-todomvc)

0 commit comments

Comments
 (0)