demarches-normaliennes/spec/system/administrateurs/annotations_spec.rb

17 lines
468 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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