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

QPierre and DChenesseau tests #38

Open
wants to merge 4 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
27 changes: 27 additions & 0 deletions spec/features/add_attribute.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require 'spec_helper'

feature 'AjouterAttribut' do

given(:attribute_name) { a_string }
given(:attribute_value) { a_string }

scenario 'à un item' do
visit $home_page
click_on 'Se connecter'
log_in_as 'alice', 'lapinblanc'
click_on 'Rechercher par thème'
click_on 'Nuage'
click_on 'Innovation'
click_on 'Sélectionner'
page.should have_content 'ITEMS'
click_on 'IF09 – Systèmes documentaires'
toggle_edit
click_plus_sign_next_to 'attribute'
fill_in 'Nom', :with => attribute_name
fill_in 'Valeur', :with => attribute_value
click_on 'Créer'
expect(page).to have_content(attribute_name)
expect(page).to have_content(attribute_value)
end

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

feature 'chercher un theme' do

scenario 'par arborescence' do
visit $home_page
click_on 'Rechercher par thème'
click_on 'Arborescence'
click_on "Formation de l'UTT"
click_on "Sélectionner"
expect(page).to have_content('Thèmes')
end


end