From 05eff8cd25ff5b38e62ec8f579f080a34cf36ff5 Mon Sep 17 00:00:00 2001 From: Formasitchijoh Date: Sat, 4 Jan 2025 05:09:19 +0100 Subject: [PATCH] fix: used capybara defautlt wait to ensure button is present before it interacts with it --- spec/features/multiwiki_assignment_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/multiwiki_assignment_spec.rb b/spec/features/multiwiki_assignment_spec.rb index d119d009d4..e9b163f879 100644 --- a/spec/features/multiwiki_assignment_spec.rb +++ b/spec/features/multiwiki_assignment_spec.rb @@ -60,8 +60,9 @@ first('textarea').set( "Terre\nhttps://fr.wikipedia.org/wiki/Anglais" ) + expect(page).to have_button('Assign all') + click_button 'Assign all' end - click_button 'Assign all' visit "/courses/#{course.slug}/students/articles" first('.student-selection .student').click