mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 13:44:09 +00:00
add tests for organization name in conference views
remove tests for organization name in conference#edit
This commit is contained in:
parent
cdc08052b1
commit
17eacaec0d
4 changed files with 8 additions and 8 deletions
|
|
@ -73,11 +73,11 @@ feature Conference do
|
|||
describe 'admin' do
|
||||
let!(:conference) { create(:conference) }
|
||||
|
||||
scenario 'has organization name in edit form', feature: true, js: true do
|
||||
scenario 'has organization name in menu bar for conference views', feature: true, js: true do
|
||||
sign_in user
|
||||
visit edit_admin_conference_path(conference.short_title)
|
||||
org_id = find('#conference_organization_id').value
|
||||
expect(Organization.find(org_id)).to eq conference.organization
|
||||
visit admin_conference_path(conference.short_title)
|
||||
|
||||
expect(find('.navbar-brand').text).to eq "#{conference.organization.name} Organization"
|
||||
end
|
||||
|
||||
it_behaves_like 'add and update conference'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue