spec: prove annotation is broken
This commit is contained in:
parent
7ba26b776f
commit
28a18e3912
1 changed files with 17 additions and 0 deletions
17
spec/system/administrateurs/annotations_spec.rb
Normal file
17
spec/system/administrateurs/annotations_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
describe 'As an administrateur I can edit annotation', js: true do
|
||||
let(:administrateur) { procedure.administrateurs.first }
|
||||
let(:procedure) { create(:procedure) }
|
||||
|
||||
before do
|
||||
login_as administrateur.user, scope: :user
|
||||
visit annotations_admin_procedure_path(procedure)
|
||||
end
|
||||
|
||||
scenario "adding a new champ" do
|
||||
click_on 'Ajouter une annotation'
|
||||
|
||||
select('Carte', from: 'Type de champ')
|
||||
# ensure UI update is ok
|
||||
check 'Cadastres'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue