Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rails_helper"
- RSpec.feature "Send a message" do
- scenario "Staff can send a message" do
- visit "/"
- group = Group.create!(name: "Group A")
- user = User.create!(email: "staff@example.com", password: "password")
- fill_in "Email", with: "staff@example.com"
- fill_in "Password", with: "password"
- click_button "Sign in"
- fill_in "Enter a Message:", with: "Test Message"
- check("message_group_#{group.id}")
- click_button "Send Message"
- expect(page).to have_content("Messages on their way!")
- end
- Send a message Staff can send a message
- Failure/Error: expect(page).to have_content("Messages on their way!")
- expected to find text "Messages on their way!" in "Tulip Time Text Numbers Sent Messages Scheduled Messages Statistics staff@example.com Logout SMS Notifications Use this form to send SMS notifications to Visitors, Staff or Volunteers. Enter a Message: Groups: Group A Scheduled Text Message:"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement