summaryrefslogtreecommitdiff
path: root/engines/support/test
diff options
context:
space:
mode:
Diffstat (limited to 'engines/support/test')
-rw-r--r--engines/support/test/integration/navigation_test.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/engines/support/test/integration/navigation_test.rb b/engines/support/test/integration/navigation_test.rb
index eec8c0e..1cf5825 100644
--- a/engines/support/test/integration/navigation_test.rb
+++ b/engines/support/test/integration/navigation_test.rb
@@ -1,9 +1,20 @@
require 'test_helper'
-class NavigationTest < ActionDispatch::IntegrationTest
+class NavigationTest < BrowserIntegrationTest
- # test "the truth" do
- # assert true
- # end
+ #
+ # 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