File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed
Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -63,34 +63,32 @@ Test specs in standalone JSON or YAML files use the following basic structure:
6363
6464Here's an example test for performing a Google search and saving a screenshot of the results:
6565
66- ``` json
67- {
68- "tests" : [
66+ <JsonYamlTabs object = { {
67+ tests: [
6968 {
70- " steps" : [
69+ steps: [
7170 {
72- " goTo" : " https://www.google.com"
71+ goTo: " https://www.google.com"
7372 },
7473 {
75- " find" : {
76- " selector" : " [title=Search]" ,
77- " click" : true
74+ find: {
75+ selector: " [title=Search]" ,
76+ click: true
7877 }
7978 },
8079 {
81- " type" : [" American Shorthair kittens" , " $ENTER$" ]
80+ type: [" American Shorthair kittens" , " $ENTER$" ]
8281 },
8382 {
84- " wait" : 5000
83+ wait: 5000
8584 },
8685 {
87- " screenshot" : " search-results.png"
86+ screenshot: " search-results.png"
8887 }
8988 ]
9089 }
9190 ]
92- }
93- ```
91+ }} ></JsonYamlTabs >
9492
9593### Inline JSON or YAML
9694
You can’t perform that action at this time.
0 commit comments