From 1a37c7266b7ee53f740dccbccc5e1cf38bb718af Mon Sep 17 00:00:00 2001 From: Elsa Bassi Date: Wed, 20 Apr 2016 13:11:01 +0200 Subject: [PATCH] Ajout du test pour voir les informations d'une UV --- spec/features/view_UV.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 spec/features/view_UV.rb diff --git a/spec/features/view_UV.rb b/spec/features/view_UV.rb new file mode 100644 index 0000000..ba9ee31 --- /dev/null +++ b/spec/features/view_UV.rb @@ -0,0 +1,24 @@ +require 'spec_helper' + +feature 'Watch UV' do + + given(:viewpoint_name) { a_string } + + background do + visit $home_page + click_on 'Se connecter' + log_in_as 'alice', 'lapinblanc' + toggle_edit + click_plus_sign_next_to 'viewpoint' + click_last 'viewpoint' + type viewpoint_name, :return + expect(page).to have_content(viewpoint_name) + toggle_edit + end + + scenario 'view an UV informations' do + click_on viewpoint_name + page.should have_content 'Thèmes' + end + +end \ No newline at end of file