Skip to content

Commit

Permalink
TEST: Upload a picture into a document (see #153).
Browse files Browse the repository at this point in the history
Co-Authored-By: Martin Gandon <[email protected]>
  • Loading branch information
raphaelweis and nitram35 committed Jun 12, 2024
1 parent 2f7f0bf commit fbdcb90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
end

Quand("j'essaie d'éditer le bloc {int} avec le texte") do |block_number, markdown|
find(".lectern>.row:nth-child(#{block_number + 1})>.scholium>.content>p").click
find(".lectern>.row:nth-child(#{block_number + 1})>.scholium>.content>.formatted-text").click
fill_element('textarea', markdown)
leave_textarea
end
Expand All @@ -56,6 +56,10 @@
click_on_icon('sources .create-document')
end

Quand("j'essaye d'ajouter une image à une glose") do
attach_file("image-input", File.expand_path("./docs/architecture.png"), make_visible: true)
end

Quand("je survole le texte :") do |text|
element = find('p[title="Highlight in document"]', text: text.strip)
element.hover
Expand Down

0 comments on commit fbdcb90

Please sign in to comment.