Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recherche de viewpoints par attributs #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
32 changes: 32 additions & 0 deletions recherche_viewpoints_par_attributs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
require 'spec_helper'

feature 'Rechercher un viewpoint par attributs' do

given(:responsable) {a_string}
given(:thèmes) {a_string}
given(:viewpoint) {a_string}

scenario 'Par responsable UV' do
visit $home_page
click_on 'Rechercher par attributs'
click_plus_sign_next_to(corpus)
click_on 'UV'
click_plus_sign_next_to(Nom)
click_on 'Responsable'
click_plus_sign_next_to(Valeur)
click_on(responsable)
click_on 'Rechercher'
expect(dialog).to have_content(viewpoint_name)
end

scenario 'Par formation UTT' do
visit $home_page
click_on 'Rechercher par thème'
click_on 'formation de l\'UTT'
click_on 'Selectionner'
click_on(thèmes)
expect(page).to have_content(viewpoint_name)
end


end
18 changes: 18 additions & 0 deletions spec/features/test_add_skills.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'spec_helper'

feature 'Ajouter une compétence' do
given(:topic_name) { a_string }

scenario 'Lorsque l utilisateur est connecté' do
visit $home_page
click_on 'Se connecter'
log_in_as 'alice', 'lapinblanc'
click_on_link 'Competences'
toggle_edit
click_plus_sign_next_to 'topic'
click_last 'topic'
type topic_name, :return

expect(page).to have_content(topic_name)
end
end
14 changes: 14 additions & 0 deletions spec/features/test_search_skills.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require 'spec_helper'

feature 'Rechercher une compétence' do

scenario 'Par le fil d\'ariane' do
visit $home_page
click_on 'Se connecter'
log_in_as 'alice', 'lapinblanc'
click_on_link 'Competences'
click_on_link 'AngularJS'

expect(page).to have_content('Baptiste BAINIER')
end
end