Skip to content

Commit e5af497

Browse files
louisduhalberruerFabien Petit
authored andcommitted
SCENARIO : Delete a picture from a document (see #187)
Co-Authored-By: Fabien Petit <fabien.petit@users.noreply.github.com> Co-Authored-By: Louis Duhal Berruer <louisduhalberruer@users.noreply.github.com>
1 parent 8dcef48 commit e5af497

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#language: fr
2+
3+
Fonctionnalité: Supprimer une image d'une glose
4+
5+
Scénario: dont on est l'auteur
6+
7+
Soit un document dont je suis l'auteur affiché comme glose
8+
Et une session active avec mon compte
9+
Et une image "architecture.png" dans une glose
10+
Quand j'essaye de supprimer l'image "architecture.png" d'une glose
11+
Alors je ne vois pas l'image "architecture.png"

features/step_definitions/event.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@
5858

5959
Quand("j'essaye d'ajouter l'image {string} à une glose") do |image_name|
6060
attach_file("image-input", File.expand_path("./docs/#{image_name}"), make_visible: true)
61+
end
62+
63+
Quand("j'essaye de supprimer une image d'une glose") do
64+
pending # Write code here that turns the phrase above into concrete actions
6165
end

features/step_definitions/outcome.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,8 @@
8585

8686
Alors("je ne vois pas le document intitulé {string}") do |title|
8787
expect(page).not_to have_content(title)
88+
end
89+
90+
Alors("l'image disparait dans la glose") do
91+
pending
8892
end

0 commit comments

Comments
 (0)