fix casting submission view page
This commit is contained in:
@@ -47,6 +47,20 @@ feature "Admin managing casting submissions" do
|
||||
expect(page).to have_link CastingSubmission.last.interview_recording.attachment.blob.filename.to_s
|
||||
end
|
||||
|
||||
scenario "when admin opens view page for casting submission, it does not fail if zoom meeting URL is invalid" do
|
||||
cc = create(:casting_call)
|
||||
cci = create(:casting_submission, casting_call: cc, zoom_meeting_url: "anything")
|
||||
|
||||
visit admin_casting_submissions_path
|
||||
|
||||
click_on manage_button
|
||||
click_link view_link
|
||||
|
||||
expect(page).to have_content casting_submission_details_header
|
||||
expect(page).to have_content interview_files_label
|
||||
expect(page).to have_content cci.performer_name
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def create_casting_submission_button
|
||||
@@ -96,4 +110,20 @@ feature "Admin managing casting submissions" do
|
||||
def current_interview_recording_label
|
||||
'Current interview recording'
|
||||
end
|
||||
|
||||
def manage_button
|
||||
'Manage'
|
||||
end
|
||||
|
||||
def view_link
|
||||
'View'
|
||||
end
|
||||
|
||||
def casting_submission_details_header
|
||||
'Casting submission details'
|
||||
end
|
||||
|
||||
def interview_files_label
|
||||
'INTERVIEW FILES:'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user