Sha256: eac36aba0c6da217cbdc15450efcc9bafc187e545ad552ec4cceb2a5ce3f7bc7

Contents?: true

Size: 623 Bytes

Versions: 5

Compression:

Stored size: 623 Bytes

Contents

require "test_helper"

class NotesTest < ActionDispatch::IntegrationTest
  include ConfigHistories::DaemonHaveSomeConfigHistories

  setup do
    login_with(FactoryBot.build(:user))
  end

  sub_test_case "update" do
    setup do
      visit("/daemon/setting/histories")
    end

    test "update a content of the first note" do
      content = "This config file is for ..."
      within(first("form")) do
        first(".note-content").set(content)
        click_button(I18n.t('terms.save'))
      end

      within(first("form")) do
        assert_equal(content, first(".note-content").value)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 test/integration/fluentd/setting/notes_test.rb
fluentd-ui-1.2.0 test/integration/fluentd/setting/notes_test.rb
fluentd-ui-1.1.0 test/integration/fluentd/setting/notes_test.rb
fluentd-ui-1.0.1 test/integration/fluentd/setting/notes_test.rb
fluentd-ui-1.0.0 test/integration/fluentd/setting/notes_test.rb