Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scenario 'user has dispatch permission and valid attributes', js: true do
- sign_in('jdoe')
- page.visit path
- page.fill_in 'contact_text_input', with: 'Jimmy'
- page.select 'Medium - 3 Hours', from: 'Priority'
- page.fill_in 'Created By', with: 'John Doe'
- page.click_button 'Create This'
- save_and_open_page
- expect(page.current_path).to eq("/dispatch")
- expect(page).to have_content('This was created successfully')
- end
- def sign_in(username)
- page.visit '/'
- page.fill_in 'Username', with: username
- page.fill_in 'Password', with: 'test'
- page.click_button 'Log In'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement