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

feature 'Editer un item' do

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

scenario 'Editer une UV' do
click_on 'OFF'
click_on 'IF05 – Qualité du logiciel'
fill_in 'IF05 – Qualité du logiciel', :with => 'IF05 – Qualité d\'un super logiciel'
click_on 'ON'
expect(page).to have_content 'IF05 - Qualité d\'un super logiciel'
end

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

feature 'Rechercher par attributs' do

scenario 'Pour une uv avec un projet' do
visit '/'
click_on 'Rechercher par attributs'
select('UV', :from => 'Corpus')
select('Nom', :from => 'Evaluation')
select('Valeur', :from => 'Projet')
click_on 'Rechercher'
expect(page).to have_content 'IF05 - Qualité du logiciel'
end

end