Skip to content

Commit

Permalink
TEST: Add a comment to a film extract (see #45).
Browse files Browse the repository at this point in the history
Co-authored-by: Jerome BRAEMS <jerome.braems@utt.fr>
Co-authored-by: Tony GONG <tony.gong@utt.fr>
  • Loading branch information
3 people committed Jun 4, 2024
1 parent 69eb789 commit 6b0e70f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@
Quand("je clique sur la référence temporelle {string} avec pour commentaire {string}") do |timecode, comment|
find(:xpath, "//p[contains(., \"#{timecode}\")]", match: :first).click
end

Quand("j’ajoute un timecode dans la glose ouverte") do
find("body").send_keys([:control, :space])
find("body").send_keys([:control, :space])
end
8 changes: 8 additions & 0 deletions features/step_definitions/outcome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,12 @@

Alors('l\'année de publication est {string}') do |string|
expect(find('.metadata > .edition', match: :first)).to have_content string
end

Alors('le texte à la fin du commentaire contient la nouvelle référence temporelle') do
expect(find('.editable.content').text).to match(/[0-9:.]+ --> [0-9:.]+\n<TEXT>/)
end

Alors('la glose est ouverte en mode édition') do
expect(page).to have_css('.scholium textarea')
end

0 comments on commit 6b0e70f

Please sign in to comment.