Correction des derniers tests suites au changement de schéma de la BDD
This commit is contained in:
parent
542cdbaefd
commit
1bdc737838
3 changed files with 18 additions and 23 deletions
|
@ -7,10 +7,10 @@ FactoryGirl.define do
|
|||
trait :with_two_type_de_piece_justificative do
|
||||
after(:build) do |procedure, _evaluator|
|
||||
rib = create(:type_de_piece_justificative, :rib)
|
||||
contrat = create(:type_de_piece_justificative, :contrat)
|
||||
msa = create(:type_de_piece_justificative, :msa)
|
||||
|
||||
procedure.types_de_piece_justificative << rib
|
||||
procedure.types_de_piece_justificative << contrat
|
||||
procedure.types_de_piece_justificative << msa
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -33,6 +33,7 @@ feature 'Admin/Dossier#Show Page' do
|
|||
end
|
||||
end
|
||||
|
||||
#TODO réactiver
|
||||
# context 'la liste des pièces justificatives est présente' do
|
||||
# context 'Attestation MSA' do
|
||||
# let(:id_piece_justificative) { 93 }
|
||||
|
|
|
@ -126,25 +126,19 @@ feature 'Description#Show Page' do
|
|||
end
|
||||
end
|
||||
|
||||
# context 'Pièces justificatives' do
|
||||
# context 'la liste des pièces justificatives a envoyé est affichée' do
|
||||
# it 'Contrat' do
|
||||
# expect(page).to have_selector('input[type=file][name=piece_justificative_764][id=piece_justificative_764]')
|
||||
# end
|
||||
#
|
||||
# it 'RIB' do
|
||||
# expect(page).to have_selector('input[type=file][name=piece_justificative_849][id=piece_justificative_849]')
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# context 'la liste des pièces récupérées automatiquement est signaliée' do
|
||||
# it 'Attestation MSA' do
|
||||
# expect(page.find_by_id('piece_justificative_93')).to have_content('Nous l\'avons récupéré pour vous.')
|
||||
# end
|
||||
#
|
||||
# it 'KBIS' do
|
||||
# expect(page.find_by_id('piece_justificative_571')).to have_content('Nous l\'avons récupéré pour vous.')
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
context 'Pièces justificatives' do
|
||||
let(:all_type_pj_procedure_id) { dossier.procedure.type_de_piece_justificative_ids }
|
||||
|
||||
context 'la liste des pièces justificatives a envoyé est affichée' do
|
||||
it 'RIB' do
|
||||
expect(page).to have_selector("input[type=file][name=piece_justificative_#{all_type_pj_procedure_id[0]}][id=piece_justificative_#{all_type_pj_procedure_id[0]}]")
|
||||
end
|
||||
end
|
||||
|
||||
context 'la liste des pièces récupérées automatiquement est signaliée' do
|
||||
it 'Attestation MSA' do
|
||||
expect(page.find_by_id("piece_justificative_#{all_type_pj_procedure_id[1]}")).to have_content('Nous l\'avons récupéré pour vous.')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue