Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions spec/features/Add_UV.py
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions spec/features/rechercher_personne.rb
Original file line number Diff line number Diff line change
@@ -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