]> git.openstreetmap.org Git - rails.git/blob - test/system/history_test.rb
Bump eslint from 8.24.0 to 8.25.0
[rails.git] / test / system / history_test.rb
1 require "application_system_test_case"
2
3 class HistoryTest < ApplicationSystemTestCase
4   test "atom link on user's history is not modified" do
5     user = create(:user)
6     create(:changeset, :user => user, :num_changes => 1) do |changeset|
7       create(:changeset_tag, :changeset => changeset, :k => "comment", :v => "first-changeset-in-history")
8     end
9
10     visit "#{user_path(user)}/history"
11     changesets = find "div.changesets"
12     changesets.assert_text "first-changeset-in-history"
13
14     assert_css "link[type='application/atom+xml'][href$='#{user_path(user)}/history/feed']", :visible => false
15   end
16 end