Skip to content

Commit

Permalink
feat: add e2e test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jan 5, 2023
1 parent 94f4537 commit 616e925
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e/api.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,34 @@
goto "http://localhost:4200"

find:
[img { width: 16px }] [img { width: 16px }] = history [label "New Request"]
[select "POST"] = method [input] = input [button "Send"] = sendBtn
[label "Headers"] = header

method -> "GET"
input -> "https://weibo.com/ajax/side/cards/sideInterested?count=60"
sendBtn -> click
wait 5000
wait 3000

find:
[label "Response"]=res

res -> click
capture

# TODO 查看测试历史
history -> click

capture
find:
[label "https://weibo.com/ajax/side/cards/sideInterested?count=60"] = target

wait

--- add New

goto "http://localhost:4200"

find:
[input "Search"] [button]=addBtn
[input "Search"] [button { width: 32px }]=addBtn

addBtn -> hover

Expand Down

0 comments on commit 616e925

Please sign in to comment.