File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Use one layer to re-enforce tests on another. E.g. REST API layer to set up data
2020to validate GraphQL API.
2121
2222Use REPL to tighten test feedback loop and speed up test writing
23- ```
23+ ``` groovy
2424webtau:000> $("ul li a")
2525element is found: by css ul li a
2626 getText(): Guide
@@ -75,7 +75,7 @@ public class SearchPage {
7575```
7676
7777[ GraphQL example] ( https://testingisdocumenting.org/webtau/GraphQL/introduction ) :
78- ```
78+ ``` groovy
7979@Webtau
8080public class GraphQLWeatherJavaIT {
8181 @Test
@@ -89,7 +89,7 @@ public class GraphQLWeatherJavaIT {
8989```
9090
9191[ Database data setup example] ( https://testingisdocumenting.org/webtau/database/data-setup ) :
92- ```
92+ ``` groovy
9393def PRICES = db.table("PRICES")
9494PRICES << [ "id" | "description" | "available" | "type" | "price" ] {
9595 _____________________________________________________________________________________________
@@ -99,7 +99,7 @@ PRICES << [ "id" | "description" | "available" | "ty
9999```
100100
101101[ CLI run example] ( https://testingisdocumenting.org/webtau/cli/introduction ) :
102- ```
102+ ``` groovy
103103cli.run('echo hello world') {
104104 output.should contain('hello')
105105 output.should contain('world')
You can’t perform that action at this time.
0 commit comments