[Git][noosfero/noosfero][master] tiny-mce-feature: fix selenium tests
Rodrigo Souto
gitlab at mg.gitlab.com
Thu Jan 21 19:17:25 BRST 2016
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
51baa75a by Rodrigo Souto at 2016-01-21T18:14:55-03:00
tiny-mce-feature: fix selenium tests
- - - - -
2 changed files:
- features/step_definitions/tiny_mce_steps.rb
- features/tiny_mce.feature
Changes:
=====================================
features/step_definitions/tiny_mce_steps.rb
=====================================
--- a/features/step_definitions/tiny_mce_steps.rb
+++ b/features/step_definitions/tiny_mce_steps.rb
@@ -5,5 +5,5 @@ end
Then /^The tinymce "(.+)" should contain "(.+)"$/ do |item, content|
item_value = page.evaluate_script("tinyMCE.activeEditor.getParam('#{item}');")
- assert_include item_value.to_s, content
+ expect(item_value.to_s).to have_content(content)
end
=====================================
features/tiny_mce.feature
=====================================
--- a/features/tiny_mce.feature
+++ b/features/tiny_mce.feature
@@ -10,10 +10,7 @@ Feature: Create tinyMCE article
@selenium
Scenario: mce complete mode should show on message creation
- Given I am on joaosilva's control panel
- And I follow "Manage Content"
- And I follow "New content"
- And I follow "Text article with visual editor"
+ Given I am on /myprofile/joaosilva/cms/new?type=TinyMceArticle
Then The tinymce "toolbar1" should be "fullscreen | insertfile undo redo | copy paste | bold italic underline | styleselect fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
And The tinymce "menubar" should be "edit insert view tools"
And The tinymce "toolbar2" should contain "print preview code media | table"
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/51baa75aa972a2c63541bf66f88488d27f0f5586
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160121/99cb7181/attachment.html>
More information about the Noosfero-dev
mailing list