Skip to content

Commit 629c8aa

Browse files
committed
Fix: failing manage workshop attendance test
revert changes to test
1 parent 743e50f commit 629c8aa

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

spec/features/admin/manage_workshop_attendances_spec.rb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,7 @@
5252
expect(page).to have_content('1 are attending as students')
5353
expect(page).to_not have_selector('i.fa-magic')
5454

55-
dropdown_text = 'Select a member to RSVP'
56-
dropdown = find('span', text: dropdown_text, visible: true)
57-
58-
attempts = 0
59-
60-
begin
61-
dropdown.click
62-
rescue Selenium::WebDriver::Error::ElementClickInterceptedError
63-
attempts += 1
64-
puts "Attempt #{attempts}: Dropdown is visible but not clickable. Retrying..."
65-
if attempts < MAX_RETRIES
66-
sleep 0.5
67-
retry
68-
else
69-
raise "Dropdown could not be clicked after #{max_attempts} attempts"
70-
end
71-
end
72-
73-
find('span', text: dropdown_text).click
55+
find('span', text: 'Select a member to RSVP', visible: true).click
7456
find('li', text: "#{other_invitation.member.full_name} (#{other_invitation.role})", visible: true).click
7557

7658
expect(page).to have_content('2 are attending as students')

0 commit comments

Comments
 (0)