File tree Expand file tree Collapse file tree
features/step_definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 134134Soit ( "un document que l'on consulte" ) do
135135 visit '/146e6e8442f0405b721b79357d00d0a1'
136136end
137+
138+ Soit ( "une image {string} dans une glose" ) do |image_name |
139+ attach_file ( "image-input" , File . expand_path ( "./docs/#{ image_name } " ) , make_visible : true )
140+ end
Original file line number Diff line number Diff line change 9090 click_on_icon ( 'typeIcon' )
9191 fill_element ( '#searchType' , type )
9292end
93+
94+ Quand ( "j'essaye de supprimer l'image {string} d'une glose" ) do |image_name |
95+ image = find ( 'img[alt="' + image_name + '"]' )
96+ delete_button = image . find ( :xpath , 'following-sibling::button[contains(@class, "delete-image")]' )
97+ delete_button . click
98+ popup = find ( '#confirmation-popup' , visible : true )
99+ yes_button = popup . find ( 'button.confirm-yes' )
100+ yes_button . click
101+ end
Original file line number Diff line number Diff line change 106106 expect ( find ( '.list-group' ) ) . not_to have_content "Ethnography/Interview"
107107end
108108
109+ Alors ( "je ne vois pas l'image {string}" ) do |image_name |
110+ expect ( page )
111+ end
You can’t perform that action at this time.
0 commit comments