update features specs
This commit is contained in:
@@ -158,14 +158,16 @@ feature 'User managing appearance releases' do
|
||||
end
|
||||
|
||||
scenario 'incomplete appearance release is added if headshot only is matched', js: true do
|
||||
skip 'Will be updated'
|
||||
# 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
|
||||
Sidekiq::Testing.inline! do
|
||||
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
|
||||
end
|
||||
|
||||
scenario 'incomplete appearance release is added if contract only is matched', js: true do
|
||||
@@ -205,19 +207,6 @@ feature 'User managing appearance releases' do
|
||||
expect(page).to have_content /Incomplete Contract\s+\d{7}/
|
||||
end
|
||||
|
||||
scenario 'importing a releases works when 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('contract.pdf')), visible: false
|
||||
expect(page).to have_content importing_label
|
||||
click_button submit_create_button
|
||||
expect(page).not_to have_content no_appearance_releases
|
||||
expect(page).to have_content /Imported 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)
|
||||
|
||||
Reference in New Issue
Block a user