Delete references @opensimplif
This commit is contained in:
parent
3c6ae2d005
commit
5d733c11fd
27 changed files with 54 additions and 457 deletions
|
@ -22,34 +22,4 @@ feature 'users: flux de commentaires' do
|
|||
comments = find(".commentaires")
|
||||
expect(comments).to have_selector(".content", count: 1)
|
||||
end
|
||||
|
||||
scenario "affichage des commentaires du champs", js: true do
|
||||
pending 'later: open simplif'
|
||||
th = find("#liste_champs th", text: champ1.libelle)
|
||||
th.click_link("COM")
|
||||
expect(page).to have_css("#modalCommentairesDossierParChamp.in")
|
||||
|
||||
modal = find("#modalCommentairesDossierParChamp")
|
||||
expect(modal).to have_css(".description", count: 2)
|
||||
end
|
||||
|
||||
scenario "crée un commentaire sur un champ", js: true do
|
||||
pending 'later: open simplif'
|
||||
# ouverture modale
|
||||
find("#liste_champs th", text: champ1.libelle).click_link("COM")
|
||||
|
||||
# ajout du commentaire
|
||||
form = find("#modalCommentairesDossierParChamp").find("#commentaire_new")
|
||||
form.fill_in("texte_commentaire", with: "le corps du commentaire sur le champ #{champ1.libelle}")
|
||||
form.click_on("Poster")
|
||||
|
||||
# le commentaire ne s'ajoute pas aux commentaires généraux
|
||||
comments = find("#commentaires_flux")
|
||||
expect(comments).to have_selector(".description", count: 1)
|
||||
|
||||
# ajout du commentaire aux commentaires du champs
|
||||
find("#liste_champs th", text: champ1.libelle).click_link("COM")
|
||||
modal = find("#modalCommentairesDossierParChamp")
|
||||
expect(modal).to have_css(".description", count: 3)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -77,15 +77,4 @@ feature 'on click on tabs button' do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "OpenSimplif" do
|
||||
before do
|
||||
allow(Features).to receive(:opensimplif).and_return(true)
|
||||
visit users_dossiers_url
|
||||
end
|
||||
|
||||
scenario "it hides the tabs" do
|
||||
expect(page).to_not have_css('#onglets')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue