Commit 5d01bf735d4664cc9927f15639ece8cd21579d11

Authored by JoenioCosta
1 parent cd8db653

ActionItem463: tests for tinymce done (but dont fail on IE)


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2059 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/selenium/tiny_mce_article.rsel
@@ -3,7 +3,10 @@ include_partial 'login' @@ -3,7 +3,10 @@ include_partial 'login'
3 click_and_wait 'link=Manage Content' 3 click_and_wait 'link=Manage Content'
4 click 'link=New article' 4 click 'link=New article'
5 click_and_wait 'link=Text article with visual editor.' 5 click_and_wait 'link=Text article with visual editor.'
  6 +assert_editable 'id=article_name'
6 type 'id=article_name', 'selenium test' 7 type 'id=article_name', 'selenium test'
7 -type 'id=article_body', 'typing article with TinyMce...' 8 +assert_editable 'id=article_body'
  9 +# for some reason command 'type' dont work for TinyMce textarea
  10 +store_eval 'selenium.browserbot.getCurrentWindow().tinyMCE.setContent("selenium body text...")', 'bli'
8 11
9 # vim: ft=ruby 12 # vim: ft=ruby
vendor/plugins/selenium-on-rails/config.yml
@@ -25,6 +25,7 @@ browsers: @@ -25,6 +25,7 @@ browsers:
25 25
26 # Gnu/Linux 26 # Gnu/Linux
27 firefox: '/usr/bin/firefox' 27 firefox: '/usr/bin/firefox'
  28 + #ie: '$HOME/bin/ie6'
28 29
29 #host: 'localhost' 30 #host: 'localhost'
30 #port_start: 3000 31 #port_start: 3000