mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix intermittent failures in track tests
Boostrap's off-screen rendering was interfering with finding links in the page layout. The included approach should be bulletproof.
This commit is contained in:
parent
78eb58c93e
commit
d95a786d9f
2 changed files with 17 additions and 4 deletions
|
|
@ -36,8 +36,11 @@ feature Track do
|
|||
|
||||
expected = expect do
|
||||
visit admin_conference_program_tracks_path(conference_id: conference.short_title)
|
||||
|
||||
click_link 'Delete'
|
||||
within('#tracks', visible: true) do
|
||||
page.accept_confirm do
|
||||
find_link('Delete').click
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
expected.to change { Track.count }.by(-1)
|
||||
|
|
@ -53,7 +56,9 @@ feature Track do
|
|||
|
||||
expected = expect do
|
||||
visit admin_conference_program_tracks_path(conference_id: conference.short_title)
|
||||
click_link 'Edit'
|
||||
within('#tracks', visible: true) do
|
||||
find_link('Edit').trigger('click')
|
||||
end
|
||||
|
||||
fill_in 'track_name', with: 'Distribution'
|
||||
fill_in 'track_short_name', with: 'Distribution'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue