remove old specs
This commit is contained in:
@@ -159,67 +159,6 @@ feature 'User managing appearance releases' do
|
||||
expect(page).to have_content no_appearance_releases
|
||||
end
|
||||
|
||||
scenario 'incomplete appearance release is added if headshot only is matched', js: true do
|
||||
skip 'Will be updated'
|
||||
visit project_appearance_releases_path(project)
|
||||
|
||||
expect(page).to have_content no_appearance_releases
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_1_headshot.jpg')), visible: false
|
||||
click_button submit_create_button
|
||||
visit project_appearance_releases_path(project)
|
||||
expect(page).not_to have_content no_appearance_releases
|
||||
end
|
||||
|
||||
scenario 'incomplete appearance release is added if contract only is matched', js: true do
|
||||
skip 'Will be updated'
|
||||
visit project_appearance_releases_path(project)
|
||||
|
||||
expect(page).to have_content no_appearance_releases
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_1.pdf')), visible: false
|
||||
click_button submit_create_button
|
||||
visit project_appearance_releases_path(project)
|
||||
expect(page).not_to have_content no_appearance_releases
|
||||
end
|
||||
|
||||
scenario 'two incomplete appearance releases are added if uploaded contract and headshot have different identifier', js: true do
|
||||
skip 'Will be updated'
|
||||
visit project_appearance_releases_path(project)
|
||||
|
||||
expect(page).to have_content no_appearance_releases
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_1.pdf')), visible: false
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_2_headshot.jpeg')), visible: false
|
||||
click_button submit_create_button
|
||||
visit project_appearance_releases_path(project)
|
||||
expect(page).not_to have_content no_appearance_releases
|
||||
expect(page).to have_content /Incomplete Contract\s+\d{7}/.twice
|
||||
end
|
||||
|
||||
scenario 'complete appearance release is added if uploaded contract and headshot have same identifier', js: true do
|
||||
skip 'Will be updated'
|
||||
visit project_appearance_releases_path(project)
|
||||
|
||||
expect(page).to have_content no_appearance_releases
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_1.pdf')), visible: false
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('contract_1_headshot.jpeg')), visible: false
|
||||
click_button submit_create_button
|
||||
visit project_appearance_releases_path(project)
|
||||
expect(page).not_to have_content no_appearance_releases
|
||||
expect(page).to have_content /Incomplete Contract\s+\d{7}/
|
||||
end
|
||||
|
||||
scenario 'importing a releases fails when file other than image or pdf is selected', js: true do
|
||||
skip 'Will be changed according to new matching capability'
|
||||
visit project_appearance_releases_path(project)
|
||||
|
||||
expect(page).to have_content submit_create_button
|
||||
expect(page).to have_content no_appearance_releases
|
||||
attach_file import_appearance_release_field, Rails.root.join(file_fixture('audio.mp3')), visible: false
|
||||
expect(page).to have_content importing_label
|
||||
click_button submit_create_button
|
||||
expect(page).to have_content failed_to_import_notice
|
||||
expect(page).to have_content no_appearance_releases
|
||||
end
|
||||
|
||||
scenario 'user leaving the page is presented with the warning if file upload is in progress', js: true do
|
||||
skip "Test is inconsistently failing in CI"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user