From dbf7de5787ec6c904022b583ca72b41d8c7ca094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 10 Apr 2021 15:21:45 +0200 Subject: [PATCH] Simplify accessing the valuation page We already test the navigation in the valuation spec file. --- spec/system/admin/budget_investments_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/system/admin/budget_investments_spec.rb b/spec/system/admin/budget_investments_spec.rb index e7152b3ef..e8a6ef6db 100644 --- a/spec/system/admin/budget_investments_spec.rb +++ b/spec/system/admin/budget_investments_spec.rb @@ -1588,9 +1588,7 @@ describe "Admin budget investments", :admin do investment2.update!(administrator: admin) login_as(valuator.user) - visit root_path - click_link "Menu" - click_link "Valuation" + visit valuation_root_path within "#budget_#{budget.id}" do click_link "Evaluate"