]> git.openstreetmap.org Git - rails.git/blob - test/system/rich_text_test.rb
Merge branch 'pull/5182'
[rails.git] / test / system / rich_text_test.rb
1 require "application_system_test_case"
2
3 class RichTextSystemTest < ApplicationSystemTestCase
4   def setup
5     create(:language, :code => "en")
6   end
7
8   test "switches to edit pane on validation failure" do
9     sign_in_as create(:user)
10     visit new_diary_entry_path
11     fill_in "Subject", :with => "My Diary Entry Title"
12     click_on "Preview"
13     click_on "Publish"
14     assert_field "Body"
15   end
16 end