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
|
|
@ -54,10 +54,8 @@ feature EmailSettings do
|
|||
with: 'Updated conference venue template'
|
||||
|
||||
click_button 'Update Email settings'
|
||||
page.find('#flash')
|
||||
expect(flash)
|
||||
.to eq('Email settings have been successfully updated.')
|
||||
|
||||
within('#flash') { expect(page).to have_text('Email settings have been successfully updated.') }
|
||||
expect(find('#email_settings_registration_subject')
|
||||
.value).to eq('Registration subject')
|
||||
expect(find('#email_settings_registration_body')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue