Skip to content

Commit

Permalink
freeze chrome profile test (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uunnamed authored Aug 18, 2020
1 parent 1ad2379 commit ce686ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/etaoin/api_test2.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
(is (= ["geckodriver" "--port" 1234 "--marionette-port" 2821]
(:args @driver)))))))

(deftest test-chrome-profile
(let [profile-path (str (Files/createTempDirectory
"chrome-profile"
(into-array FileAttribute [])))]
(with-chrome {:profile profile-path} driver
(go driver "chrome://version")
(is profile-path
(get-element-text driver :profile_path)))))
#_(deftest test-chrome-profile
(let [profile-path (str (Files/createTempDirectory
"chrome-profile"
(into-array FileAttribute [])))]
(with-chrome-headless {:profile profile-path :args ["--no-sandbox"]} driver
(go driver "chrome://version")
(is profile-path
(get-element-text driver :profile_path)))))

(deftest test-fail-run-driver
(is (thrown-with-msg?
Expand Down

0 comments on commit ce686ff

Please sign in to comment.