Skip to content

Commit

Permalink
TEST: Comment or adapt a document with an existing document (see #219).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nizreenana authored and benel committed Aug 10, 2024
1 parent 76f3862 commit eaec084
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions features/step_definitions/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,11 @@
expect(page).to have_image license
end

Soit("un commentaire est créée pour le document principal avec les métadonnées :") do |metadata|
click_on_icon('gloses .create-document')
click_on_text('metadata')
fill_element('textarea', metadata)
leave_textarea
click_on_icon('close')
end

8 changes: 8 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,11 @@
click_on_icon('gloses .create-document')
end

Quand("j'essaie de créer un commentaire pour {string} avec {string}") do |title1, title2|
click_on_icon_next_to('focus', title1)
click_on_icon('select-document')
document_list = all('.documentList', visible: true)
document_to_select = document_list.find { |document| document.text.include?(title2) }
document_to_select.click
end

0 comments on commit eaec084

Please sign in to comment.