From 6eae175f4cf7055e13fe7817efe3154489ee1e0a Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Thu, 19 Jun 2008 23:57:52 +0000 Subject: [PATCH] ActionItem463: trying to reproduce error using selenium --- test/fixtures/articles.yml | 1 + test/selenium/_login.rsel | 6 ++++++ test/selenium/tiny_mce_article.rsel | 9 +++++++++ 3 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 test/selenium/_login.rsel create mode 100644 test/selenium/tiny_mce_article.rsel diff --git a/test/fixtures/articles.yml b/test/fixtures/articles.yml index 5f68cb0..e8f74d9 100644 --- a/test/fixtures/articles.yml +++ b/test/fixtures/articles.yml @@ -2,3 +2,4 @@ ze_homepage: id: 1 name: 'Ze home page' profile_id: 4 + type: 'TinyMceArticle' diff --git a/test/selenium/_login.rsel b/test/selenium/_login.rsel new file mode 100644 index 0000000..36ae59d --- /dev/null +++ b/test/selenium/_login.rsel @@ -0,0 +1,6 @@ +open '/account/login' +type :user_login, 'ze' +type :user_password, 'test' +click_and_wait :commit + +# vim: ft=ruby diff --git a/test/selenium/tiny_mce_article.rsel b/test/selenium/tiny_mce_article.rsel new file mode 100644 index 0000000..0952e8e --- /dev/null +++ b/test/selenium/tiny_mce_article.rsel @@ -0,0 +1,9 @@ +setup :fixtures => :all +include_partial 'login' +click_and_wait 'link=Manage Content' +click 'link=New article' +click_and_wait 'link=Text article with visual editor.' +type 'id=article_name', 'selenium test' +type 'id=article_body', 'typing article with TinyMce...' + +# vim: ft=ruby -- libgit2 0.21.2