From 96414d25fe9c73c3902ed17a26aeff14a5ef4eac Mon Sep 17 00:00:00 2001 From: Rob Scanlon Date: Mon, 28 Feb 2022 16:39:37 -0500 Subject: [PATCH] Update location in ui that user gets redirected to. --- lib/inferno/dsl/resume_test_route.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/inferno/dsl/resume_test_route.rb b/lib/inferno/dsl/resume_test_route.rb index a6df5613d0..ededb58d42 100644 --- a/lib/inferno/dsl/resume_test_route.rb +++ b/lib/inferno/dsl/resume_test_route.rb @@ -55,7 +55,7 @@ def persist_request # @private def redirect_route - "#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{waiting_group_id}" + "#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{resume_ui_at_id}" end # @private @@ -64,8 +64,8 @@ def test end # @private - def waiting_group_id - test.parent.id + def resume_ui_at_id + test_run.test_suite_id || test_run.test_group_id || test.parent.id end # @private