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