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

Test issues 22, 30, 3. #34

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
22 changes: 22 additions & 0 deletions spec/features/modify-attribute-values.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'spec_helper'


feature 'Attribute values should be easily modified' do

scenario 'for an attribute already created' do
visit '/'
click_on 'Se connecter'
fill_in 'Nom d\'utilisateur :', :with => 'donald'
fill_in 'Mot de passe', :with => 'duck'
click_on 'Se connecter'
click_on 'Corpus-mesures'
click_on 'item-phys'
click_on 'OFF'
click_on 'poids 3kg'
fill_in 'Valeur', :with => '5,5kg'
click_on 'Enregistrer'
click_on 'ON'
page.should have_content '5,5kg'
end
end

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

feature 'Create a viewpoint' do

$a_viewpoint = a_string()

background do
visit'/'
click_on 'Se connecter'
fill_in 'Nom d\'utilisateur :', :with => 'donald'
fill_in 'Mot de passe', :with => 'duck'
click_on 'Se connecter'
end

feature 'for any viewpoint'
toggle_edit()
click_on add_button('points de vue')
click_on 'Sans nom'
fill_in 'textbox', :with => $a_viewpoint
type_enter()
toggle_edit()
page.should have_content $a_viewpoint
end

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

feature 'Delete a viewpoint' do

$a_vpt = a_string()

background do
visit'/'
click_on 'Se connecter'
fill_in 'Nom d\'utilisateur :', :with => 'donald'
fill_in 'Mot de passe', :with => 'duck'
click_on 'Se connecter'
toggle_edit()
click_on add_button('points de vue')
click_on 'Sans nom'
fill_in 'textbox', :with => $a_vpt
type_enter()
toggle_edit()
end

feature 'for any empty viewpoint'
toggle_edit()
click_on garbage_button($a_vpt)
toggle_edit()
page.should have_content 'Points de'
page.should_not have_content $a_vpt
end

end