From e71b4f92b1af7f843b34d05abf260a1eea57d70d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 27 May 2016 14:08:39 +0200 Subject: [PATCH] Fixed blank screen on /#ticket/zoom/1 and not authenticated users. --- .../javascripts/app/lib/app_post/auth.coffee | 2 +- test/browser/aab_basic_urls_test.rb | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/app_post/auth.coffee b/app/assets/javascripts/app/lib/app_post/auth.coffee index c2f8d6513..6d69c0bae 100644 --- a/app/assets/javascripts/app/lib/app_post/auth.coffee +++ b/app/assets/javascripts/app/lib/app_post/auth.coffee @@ -87,7 +87,7 @@ class App.Auth App.Event.trigger('auth') App.Event.trigger('auth:logout') App.Event.trigger('ui:rerender') - + App.TaskManager.tasksInitial() return false # clear local store diff --git a/test/browser/aab_basic_urls_test.rb b/test/browser/aab_basic_urls_test.rb index 7fc833feb..83b106611 100644 --- a/test/browser/aab_basic_urls_test.rb +++ b/test/browser/aab_basic_urls_test.rb @@ -33,4 +33,24 @@ class AABBasicUrlsTest < TestCase ) end + def test_ticket + @browser = browser_instance + location( + url: "#{browser_url}/#ticket/zoom/1", + ) + location_check( + url: "#{browser_url}/#login", + ) + end + + def test_not_existing + @browser = browser_instance + location( + url: "#{browser_url}/#not_existing", + ) + location_check( + url: "#{browser_url}/#not_existing", + ) + end + end