Skip to content

Commit

Permalink
fix: integration tests (#304)
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
  • Loading branch information
fsamin authored Nov 18, 2020
1 parent 256289d commit d164074
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 7 additions & 0 deletions tests/assertions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Assertions testsuite
testcases:
- name: ShouldBeIn
steps:
- script: echo 1
assertions:
- result.systemoutjson ShouldBeIn 1 2
2 changes: 1 addition & 1 deletion tests/redis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Redis testsuite
vars:
redisHost: 'localhost'
redisPort: '6379'
redisPort: '16379'
redis.dialURL: "redis://{{.redisHost}}:{{.redisPort}}/0"

testcases:
Expand Down
15 changes: 8 additions & 7 deletions tests/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,26 @@ testcases:
- type: web
action:
navigate:
url: https://www.google.fr
url: https://httpbin.org/forms/post
info: "title is '{{.result.title}}''"
assertions:
- result.title ShouldEqual Google
- result.title ShouldBeEmpty

- type: web
action:
find: input[name="q"]
find: input[name="custname"]
assertions:
- result.find ShouldEqual 1

- type: web
action:
fill:
- find: input[name="q"]
text: "venom runabove"
- find: input[name="custname"]
text: "venom ovh"

- type: web
action:
click:
find: input[value="Recherche Google"]
find: button
wait: 1
screenshot: googlesearch.jpg
screenshot: httpbin_post.jpg

0 comments on commit d164074

Please sign in to comment.