mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix up test failures in Chrome & Firefox
This commit is contained in:
parent
b72bb8a0ed
commit
1b9a12746d
29 changed files with 145 additions and 78 deletions
|
|
@ -16,6 +16,7 @@ feature Organization do
|
|||
click_button 'Update Organization'
|
||||
|
||||
organization.reload
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('Organization successfully updated')
|
||||
expect(organization.name).to eq('changed name')
|
||||
end
|
||||
|
|
@ -30,7 +31,7 @@ feature Organization do
|
|||
fill_in 'organization_name', with: 'Organization name'
|
||||
|
||||
click_button 'Create Organization'
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('Organization successfully created')
|
||||
expect(Organization.last.name).to eq('Organization name')
|
||||
end
|
||||
|
|
@ -44,7 +45,7 @@ feature Organization do
|
|||
end
|
||||
scenario "can't create new organization", feature: true, js: true do
|
||||
visit new_admin_organization_path
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('You are not authorized to access this page.')
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue