From d7897b5ff2f5820604f943f8f423c4270c75340a Mon Sep 17 00:00:00 2001 From: Antonio Paulino Date: Tue, 26 Sep 2023 21:34:03 -0300 Subject: [PATCH] fix: add vist supervisors_path to load supervisors list before visiting supervisors edit page and click on Change to Admin button --- spec/system/supervisors/edit_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system/supervisors/edit_spec.rb b/spec/system/supervisors/edit_spec.rb index 2caf1b7b1d..02d68f056c 100644 --- a/spec/system/supervisors/edit_spec.rb +++ b/spec/system/supervisors/edit_spec.rb @@ -125,7 +125,9 @@ sign_in user + visit supervisors_path visit edit_supervisor_path(supervisor) + click_on "Change to Admin" expect(page).to have_text("Supervisor was changed to Admin.")