summaryrefslogtreecommitdiff
path: root/engines/support/test/integration/navigation_test.rb
blob: 1cf582509c3f03e838c136f6d440868f0066b330 (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 'open_status=open&sort_order=created_at_desc', uri.query
    end
  end
end