Skip to content

Commit

Permalink
TEST: Rollback to a previous version of a document (see #34).
Browse files Browse the repository at this point in the history
Co-authored-by: koeltv <valentin.koeltgen@utt.fr>
  • Loading branch information
khbgbgk1 and koeltv committed May 21, 2024
1 parent eadca50 commit 9ce056b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions features/step_definitions/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,20 @@
leave_textarea
expect(page).to have_content 'First side passage'
end


Soit("dont le texte du premier passage est {string} dans sa version antérieure la plus récente") do |markdown|
sign_in('alice', 'whiterabbit')
click_on_text('content')
find('textarea').fill_in with: markdown
leave_textarea
sign_out
end

Soit("dont le texte du premier passage est {string}") do |markdown|
sign_in('alice', 'whiterabbit')
click_on_text('content')
find('textarea').fill_in with: markdown
leave_textarea
sign_out
end
9 changes: 9 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@
fill_element('textarea', markdown)
leave_textarea
end


Quand("j'essaye d'effectuer un rollback") do
find(".content").right_click
click_on_icon('rollback')
click_on_icon('confirm-rollback')
end


0 comments on commit 9ce056b

Please sign in to comment.