Upstream cast me sync
This commit is contained in:
@@ -47,7 +47,7 @@ feature "User managing casting calls" do
|
||||
|
||||
click_on "Create Casting call"
|
||||
|
||||
expect(page).to have_content("Your casting call request was successfully submitted. Thank you. A chat window will pop up on the lower right in a few seconds.")
|
||||
expect(page).to have_content("The casting call request has been created successfully.")
|
||||
end
|
||||
|
||||
scenario "can update casting call requests" do
|
||||
@@ -74,6 +74,43 @@ feature "User managing casting calls" do
|
||||
expect(page).to have_content("The casting call request has been cancelled")
|
||||
end
|
||||
|
||||
scenario "can open casting call details" do
|
||||
cc = create(:casting_call, title: "Dummy title", project: project)
|
||||
|
||||
visit project_casting_calls_path(project)
|
||||
|
||||
click_on manage_button
|
||||
click_on view_button
|
||||
|
||||
expect(page).to have_content cc.title
|
||||
expect(page).to have_content cc.description
|
||||
expect(page).to have_content cc.project_description
|
||||
expect(page).to have_content cc.created_at
|
||||
expect(page).to have_content cc.status
|
||||
expect(page).to have_content cc.interview_instructions
|
||||
expect(page).to have_content cc.interview_requirements
|
||||
expect(page).to have_content cc.questions
|
||||
end
|
||||
|
||||
context "when signed out" do
|
||||
scenario "user opens public accessible casting call URL" do
|
||||
cc = create(:casting_call, title: "Dummy title", project: project)
|
||||
|
||||
sign_out
|
||||
public_url = "/casting_calls/#{cc.token}"
|
||||
visit public_url
|
||||
|
||||
expect(page).to have_content cc.title
|
||||
expect(page).to have_content cc.description
|
||||
expect(page).to have_content cc.project_description
|
||||
expect(page).not_to have_content cc.created_at
|
||||
expect(page).not_to have_content cc.status
|
||||
expect(page).not_to have_content cc.interview_instructions
|
||||
expect(page).not_to have_content cc.interview_requirements
|
||||
expect(page).not_to have_content cc.questions
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def no_casting_calls_label
|
||||
@@ -84,6 +121,10 @@ feature "User managing casting calls" do
|
||||
t "casting_calls.casting_call.actions.manage"
|
||||
end
|
||||
|
||||
def view_button
|
||||
'View'
|
||||
end
|
||||
|
||||
def add_new_casting_call_label
|
||||
t "casting_calls.index.actions.new"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user