mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Replace flash helper with "within"
So we can't forget to find "#flash" on the page ever again...
This commit is contained in:
parent
bc1a21ae46
commit
df0b9ab356
29 changed files with 116 additions and 180 deletions
|
|
@ -21,10 +21,8 @@ feature Program do
|
|||
fill_in 'program_rating', with: '4'
|
||||
|
||||
click_button 'Update Program'
|
||||
page.find('#flash')
|
||||
# Validations
|
||||
expect(flash)
|
||||
.to eq('The program was successfully updated.')
|
||||
|
||||
within('#flash') { expect(page).to have_text('The program was successfully updated.') }
|
||||
expect(find('#rating').text).to eq('4')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue