diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-26 07:27:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-26 07:27:30 +0000 |
commit | b9fa262165601a3b348d22ca1d8da53bda99e55b (patch) | |
tree | 21bd632e051addfee01ab7a568b01f5b6428051a /test/system | |
parent | c171797673f549e434dd6b94f7262fd31a77b533 (diff) | |
download | redmine-b9fa262165601a3b348d22ca1d8da53bda99e55b.tar.gz redmine-b9fa262165601a3b348d22ca1d8da53bda99e55b.zip |
Adds preview option to the wiki toolbar (#27758).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17521 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/issues_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 0ffc1c235..f4c52996d 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -179,10 +179,10 @@ class IssuesTest < ApplicationSystemTestCase fill_in 'Subject', :with => 'new issue subject' fill_in 'Description', :with => 'new issue description' click_link 'Preview' + find 'div.wiki-preview', :visible => true, :text => 'new issue description' end - find 'div#preview fieldset', :visible => true, :text => 'new issue description' assert_difference 'Issue.count' do - find('input[name=commit]').click + click_button('Create') end issue = Issue.order('id desc').first @@ -314,9 +314,9 @@ class IssuesTest < ApplicationSystemTestCase # Update the notes fill_in 'Notes', :with => 'Updated notes' # Preview the change - click_on 'Preview' - assert page.has_css?('#journal_2_preview') - assert page.first('#journal_2_preview').has_content?('Updated notes') + page.first('#change-2 a.tab-preview').click + assert page.has_css?('#preview_journal_2_notes') + assert page.first('#preview_journal_2_notes').has_content?('Updated notes') # Save click_on 'Save' |