summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-07-12 10:16:48 +0200
committermr <mr@mrautenberg.de>2011-07-12 10:16:48 +0200
commitceb7d78d0cbc51bc755b0aee632d20be7e44ac5b (patch)
tree9a3b9cd00167997aabf9d8a121f907f6fbb02fd5
parenteadff4312bb68d8f5f7d8fd9ff22eb1574a651c6 (diff)
akephalos without javascript validation check
-rw-r--r--toxcreate.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/toxcreate.rb b/toxcreate.rb
index dbad292..14e5a4b 100644
--- a/toxcreate.rb
+++ b/toxcreate.rb
@@ -58,16 +58,22 @@ class ToxCreateTest < Test::Unit::TestCase
end
assert first(".model_status").has_content?("Completed")
end
-
+
def test_03_predict # works only with selenium
- Capybara.current_driver = :selenium
+ Capybara.current_driver = :akephalos
+ Capybara.register_driver :akephalos do |app|
+ Capybara::Driver::Akephalos.new(app, :validate_scripts => false)
+ end
visit CONFIG[:services]["opentox-toxcreate"]
click_on "Predict"
fill_in "or enter a Name, InChI, Smiles, CAS, ...", :with => "NNc1ccccc1"
check "hamster_carcinogenicity"
click_button "Predict"
assert page.has_content? "inactive"
+ click_on "Confidence"
+ assert page.has_content? "Indicates the applicability domain of a model"
click_on "Details"
+
#assert page.has_content? "false"
#assert page.has_content? "0.294"
#assert page.has_content? "0.875"