mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Make spec thread safe...
Something(???) has changed that Github Actions has become *so* fast that those hit now...
This commit is contained in:
parent
4b833840fd
commit
eb16282a01
4 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue