Make spec thread safe...

Something(???) has changed that Github Actions has become *so* fast that those hit now...
This commit is contained in:
Henne Vogelsang 2025-08-05 17:50:55 +02:00
parent 4b833840fd
commit eb16282a01
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
4 changed files with 9 additions and 8 deletions

View file

@ -46,11 +46,10 @@ feature Registration do
context 'who is not registered' do
scenario 'registers for a conference', feature: true, js: true do
visit root_path
click_link 'Register'
expect(current_path).to eq(new_conference_conference_registration_path(conference.short_title))
visit new_conference_conference_registration_path(conference.short_title)
click_button 'Register'
page.find('#flash')
expect(flash).to eq('You are now registered and will be receiving E-Mail notifications.')
expect(conference.user_registered?(participant)).to be(true)
end

View file

@ -58,6 +58,8 @@ feature Role do
fill_in 'user_email', with: user_with_no_role.email
click_button 'Add'
page.find('.alert')
user_with_no_role.reload
expect(user_with_no_role.has_cached_role?(role.name, conference)).to be true

View file

@ -41,12 +41,10 @@ feature Ticket do
click_button 'Update Ticket'
ticket.reload
# It's necessary to multiply by 100 because the price is in cents
page.find('#flash')
expect(flash).to eq('Ticket successfully updated.')
expect(ticket.price).to eq(Money.new(50 * 100, 'USD'))
expect(ticket.title).to eq('Event Ticket')
expect(ticket.reload.price.to_i).to eq(50)
expect(ticket.reload.title).to eq('Event Ticket')
expect(Ticket.count).to eq(2)
end

View file

@ -20,6 +20,8 @@ feature 'Version' do
fill_in 'contact_social_tag', with: 'example'
fill_in 'contact_googleplus', with: 'http:\\www.google.com'
click_button 'Update Contact'
page.find('#flash')
expect(flash).to eq('Contact details were successfully updated.')
visit admin_revision_history_path
expect(page).to have_text("#{organizer.name} updated social tag, email, googleplus and sponsor email of contact details in conference #{conference.short_title}")