Skip to content

Commit 8800f0f

Browse files
committed
add multiple JS blocks doc to readme
1 parent 900bcbb commit 8800f0f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ The "html" block is optional.
5454

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

57+
### Multiple JavaScript blocks
58+
59+
You can include multiple JS blocks in each fiddle
60+
61+
<!-- fiddle Example -->
62+
```js
63+
cy.contains('#hello', 'Hello')
64+
```
65+
66+
Some time later more test code
67+
68+
```js
69+
cy.wait(2000)
70+
```
71+
72+
<!-- fiddle.end -->
73+
5774
### Suites
5875

5976
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.

0 commit comments

Comments
 (0)