diff --git a/spec/features/Add_UV.py b/spec/features/Add_UV.py new file mode 100644 index 0000000..8b46aaa --- /dev/null +++ b/spec/features/Add_UV.py @@ -0,0 +1,45 @@ +require 'spec_helper' + +feature 'Ajouter une UV' do + + $login = 'alice' + $pass = 'lapinblanc' + + $titreUV = a_string() + $responsableUV = a_string() + + + scenario 'Lorsque l utilisateur est connecté' do + visit $home_page + click_on_link 'UV' + click_on 'OFF' + click_plus_sign_next_to 'Items' + click_on 'Sans nom' + fill_in '', :with => $titreUV + click_on $titreUV + click_plus_sign_next_to 'Attributs' + fill_in 'Nom', :with => 'Responsable' + fill_in 'Valeur', :with => $responsableUV + click_on 'Créer' + expect(page).to have_content($titreUV) + end + + scenario 'Lorsque l utilisateur n est pas connecté' do + visit $home_page + click_on_link 'UV' + click_on 'Se connecter' + log_in_as $login, $pass + click_on 'Se connecter' + click_on 'OFF' + click_plus_sign_next_to 'Items' + click_on 'Sans nom' + fill_in 'Nom', :with => $titreUV + click_on $titreUV + click_plus_sign_next_to 'Attributs' + fill_in 'Nom', :with => 'Responsable' + fill_in 'Valeur', :with => $responsableUV + click_on 'Créer' + expect(page).to have_content($titreUV) + end + +end diff --git a/spec/features/rechercher_personne.rb b/spec/features/rechercher_personne.rb new file mode 100644 index 0000000..e306092 --- /dev/null +++ b/spec/features/rechercher_personne.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + + feature 'Rechercher les personnes suivant leur affiliation / service / compétences / centre(s) d\'intérêt(s) (par attributs)' do + + scenario 'Scénario CIFRE' do + visit '/' + + click_on_link 'Personnels administratifs' + click_on_link 'mission de l\'utt' + click_on_link 'valorisation' + click_on_link 'CIFRE' + + expect(page).to have_content 'Delphine DUSSOLIER' + expect(page).to have_content 'Dora DIOP' + end + + end