Skip to content

Commit

Permalink
Test: Delete a reference (see Hypertopic#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
LIUC2H5OH committed Jun 6, 2023
1 parent 1029acd commit 0d4b934
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions features/step_definitions/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@

Quand("je navigue vers le document suivant") do
click_on('->')
end

Quand("je vais supprimer les références existantes") do
click_on_icon('delete_reference')
end
7 changes: 6 additions & 1 deletion features/step_definitions/outcome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,9 @@

Alors("{string} est le document affiché à l'écran") do |text|
expect(find('.runningHead')).to have_content text
end
end

Alors("La référence n'existe pas dans le document principal") do
parent_div = all(".gy-4").last
expect(parent_div).not_to have_selector("div.col-md-12")
end

0 comments on commit 0d4b934

Please sign in to comment.