Merge master
This commit is contained in:
commit
f3271f5cdc
21 changed files with 58 additions and 37 deletions
|
|
@ -22,6 +22,8 @@ feature EventType do
|
|||
|
||||
fill_in 'event_type_title', with: 'Party'
|
||||
fill_in 'event_type_length', with: '240'
|
||||
fill_in 'event_type_description', with: '**Description**'
|
||||
fill_in 'event_type_submission_instructions', with: '**Instructions**'
|
||||
fill_in 'event_type_minimum_abstract_length', with: '0'
|
||||
fill_in 'event_type_maximum_abstract_length', with: '13042'
|
||||
page.find('#event_type_color').set('#e4e4e4')
|
||||
|
|
@ -29,11 +31,14 @@ feature EventType do
|
|||
click_button 'Create Event type'
|
||||
page.find('#flash')
|
||||
# Validations
|
||||
# binding.pry
|
||||
expect(flash).to eq('Event type successfully created.')
|
||||
within('table#event_types') do
|
||||
expect(page.has_content?('Party')).to be true
|
||||
expect(page.has_content?('13042')).to be true
|
||||
expect(page.has_content?('#E4E4E4')).to be true
|
||||
expect(page.has_content?('Description')).to be true
|
||||
expect(page.has_content?('Instructions')).to be true
|
||||
expect(page.assert_selector('tr', count: 3)).to be true
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -147,11 +147,15 @@ feature Event do
|
|||
select('Example Event Type', from: 'event[event_type_id]')
|
||||
expect(page).to have_selector(".in[id='#{find_field('event[event_type_id]').value}-help']") # End of animation
|
||||
|
||||
expect(page).to have_text('Example Event Description')
|
||||
fill_in 'event_abstract', with: 'Lorem ipsum abstract'
|
||||
expect(page).to have_text('You have used 3 words')
|
||||
|
||||
fill_in 'event_submission_text', with: 'Lorem ipsum submission_text'
|
||||
expect(page).to have_text('Submission description')
|
||||
expect(page).to have_text('Submission text')
|
||||
# Submission Instructions content
|
||||
expect(page).to have_text('Example Event Instructions')
|
||||
|
||||
|
||||
click_link 'Do you require something special?'
|
||||
fill_in 'event_description', with: 'Lorem ipsum description'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue