Skip to content

Commit

Permalink
TEST: Add a document created by other to one's bookshelf (see #150).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nizreenana authored and benel committed Jul 15, 2024
1 parent 4a43c8b commit aeadb15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,8 @@
Quand("je sélectionne {string} dans le menu déroulant") do |option|
select option, from: 'select-dropdown'
click_on_icon('gloses .create-document')

Quand ("j'ai mis le document dans le favoris") do
find(".main .icon").click
end

10 changes: 10 additions & 0 deletions features/step_definitions/outcome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,13 @@
expect(page).not_to have_selector('.editable.content', text: 'content')
end

Alors("je ne vois pas le document intitulé {string}") do |title|
expect(page).not_to have_content(title)
end

Alors ("{string} est le document mise en oeuvre") do |title|
find('img[src="/logo.png"]').click
click_on_icon_next_to('focus', title)
expect(find('.main .work')).to have_content title
expect(page).to have_title title
end

0 comments on commit aeadb15

Please sign in to comment.