Indicate if spalshpage is marked as public or not.
This commit is contained in:
parent
7127834263
commit
d3ce401cba
3 changed files with 10 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ feature Splashpage do
|
|||
|
||||
expect(flash).to eq('Splashpage successfully created.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Private')).to be true
|
||||
end
|
||||
|
||||
context 'splashpage already created' do
|
||||
|
|
@ -34,6 +35,7 @@ feature Splashpage do
|
|||
|
||||
expect(flash).to eq('Splashpage successfully updated.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Public')).to be true
|
||||
|
||||
click_link 'Edit'
|
||||
expect(page.has_checked_field?('Make splash page public?')).to be true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue