Skip to content

Commit

Permalink
Add test for fill-active (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgr authored Aug 20, 2024
1 parent 5d9d3ac commit 70689f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/etaoin/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,18 @@
(-> e/get-url
(str/ends-with? "?login=1test2+A&password=&message=")
is)))
(testing "fill active"
(doto *driver*
(e/click :simple-input)
(e/fill-active "MyLogin")
(e/click :simple-password)
(e/fill-active "MyPassword")
(e/click :simple-textarea)
(e/fill-active "Some text")
(e/click :simple-submit)
(e/when-safari (e/wait 3)))
(is (str/ends-with? (e/get-url *driver*)
"?login=MyLogin&password=MyPassword&message=Some+text")))
(testing "fill active human"
(doto *driver*
(e/click :simple-input)
Expand Down

0 comments on commit 70689f4

Please sign in to comment.