update specs
This commit is contained in:
@@ -162,10 +162,47 @@ feature 'User managing appearance releases' do
|
||||
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('pratt_headshot_with_code.jpg')), visible: false
|
||||
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 works when pdf is selected', js: true do
|
||||
|
||||
Reference in New Issue
Block a user