mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Include code of conduct on conference
This commit is contained in:
parent
217ec1a46f
commit
95196c7f80
5 changed files with 47 additions and 1 deletions
|
|
@ -43,6 +43,24 @@ feature 'Code of Conduct:' do
|
|||
expect(page).to have_text(sample_text)
|
||||
end
|
||||
end
|
||||
|
||||
context 'on a conference' do
|
||||
let!(:conference) { create(:full_conference, organization: organization) }
|
||||
|
||||
it 'is linked from the index' do
|
||||
visit conferences_path
|
||||
within "#conference-#{conference.id}" do
|
||||
click_on 'Code of Conduct'
|
||||
end
|
||||
expect(page).to have_text(sample_text)
|
||||
end
|
||||
|
||||
it 'is included in the splash page', js: true do
|
||||
visit conference_path(conference)
|
||||
click_on 'Code of Conduct'
|
||||
expect(page).to have_text(sample_text)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue