Skip to content

Commit

Permalink
Fix assertions in test-switch-default-locator
Browse files Browse the repository at this point in the history
  • Loading branch information
dgr committed Sep 15, 2024
1 parent 05b8854 commit f4ee985
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/etaoin/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -961,15 +961,13 @@
(is (= (vec tag-names)
["div" "b" "p" "span"])))))

(deftest test-switch-default-locators
(deftest test-switch-default-locator
(testing "xpath locator"
(let [driver (e/use-xpath *driver*)
text (e/get-element-text driver {:class :target})]
(is (= "target-1" text))))
(let [driver (e/use-xpath *driver*)]
(is (= "target-1" (e/get-element-text driver ".//*[@class='target']")))))
(testing "css locator"
(let [driver (e/use-css *driver*)
text (e/get-element-text driver {:class :target})]
(is (= "target-1" text)))))
(let [driver (e/use-css *driver*)]
(is (= "target-1" (e/get-element-text driver ".target"))))))

(deftest test-fn-index
(testing ":fn/index"
Expand Down

0 comments on commit f4ee985

Please sign in to comment.