summaryrefslogtreecommitdiff
path: root/engines/support/test/integration/navigation_test.rb
blob: 13d51b6cb1d9595993259545083de31439932726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'test_helper'

class NavigationTest < BrowserIntegrationTest

  #
  # this is a regression test for #5879
  #
  test "admin can navigate all tickets" do
    login
    with_config admins: [@user.login] do
      visit '/'
      click_on 'Tickets'
      click_on 'Created at'
      uri = URI.parse(current_url)
      assert_equal '/tickets', uri.path
      assert_equal 'sort_order=created_at_desc', uri.query
    end
  end
end