remove specs related to zoom url validation
This commit is contained in:
@@ -37,16 +37,6 @@ RSpec.describe Admin::CastingSubmissionsController, type: :controller do
|
||||
post :create, params: { casting_submission: casting_submission_params }
|
||||
}.to change(CastingSubmission, :count)
|
||||
end
|
||||
|
||||
it "does not create new record if zoom meeting url is not valid" do
|
||||
expect {
|
||||
post :create, params: {
|
||||
casting_submission: casting_submission_params
|
||||
.except(:zoom_meeting_url)
|
||||
.merge(zoom_meeting_url: "malformed_url")
|
||||
}
|
||||
}.to change(CastingSubmission, :count).by(0)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#edit" do
|
||||
|
||||
@@ -8,37 +8,6 @@ feature "Admin managing casting submissions" do
|
||||
sign_in current_user
|
||||
end
|
||||
|
||||
scenario "admin cannot create casting submission with invalid zoom url", js: true do
|
||||
visit admin_casting_submissions_path
|
||||
cc = create(:casting_call, title: "SpecialCastingCall")
|
||||
|
||||
click_link create_casting_submission_button
|
||||
expect(page).to have_content new_casting_submission_heading
|
||||
|
||||
fill_in performer_name_field, with: "TestName"
|
||||
select cc.title, from: casting_call_field
|
||||
fill_in zoom_meeting_url_field, with: "malformed url"
|
||||
|
||||
expect do
|
||||
click_on submit_casting_submission_form
|
||||
end.to change(CastingSubmission, :count).by(0)
|
||||
expect(page).to have_content zoom_meeting_url_invalid_error
|
||||
|
||||
fill_in zoom_meeting_url_field, with: "https://similar.google.com/j/24324324?pwd=334kni3j4"
|
||||
|
||||
expect do
|
||||
click_on submit_casting_submission_form
|
||||
end.to change(CastingSubmission, :count).by(0)
|
||||
expect(page).to have_content zoom_meeting_url_invalid_error
|
||||
|
||||
fill_in zoom_meeting_url_field, with: "https://s01.zoom.us/j/343434?pwd=dawidj34ijij"
|
||||
|
||||
expect do
|
||||
click_on submit_casting_submission_form
|
||||
end.to change(CastingSubmission, :count).by(1)
|
||||
expect(page).to have_content create_casting_submission_button
|
||||
end
|
||||
|
||||
scenario "when creating new casting call interview - interview recording field is not visible" do
|
||||
visit admin_casting_submissions_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user