diff --git a/features/desktop/comments.feature b/features/desktop/comments.feature index 9d1e3dbf5..c30e7f144 100644 --- a/features/desktop/comments.feature +++ b/features/desktop/comments.feature @@ -27,10 +27,7 @@ Feature: commenting When I sign in as "bob@bob.bob" And I am on "alice@alice.alice"'s page Then I should see "Look at this dog" - When I focus the comment field - And I fill in the following: - | text | is that a poodle? | - And I press "Comment" + When I comment "is that a poodle?" on "Look at this dog" And I click to delete the first comment And I confirm the alert Then I should not see "is that a poodle?" diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index e092c6bc1..bab1c44ec 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -120,7 +120,7 @@ end When /^I click to delete the first comment$/ do within("div.comment", match: :first) do find(".controls").hover - find(".comment_delete").click + find(".comment_delete", visible: false).click # TODO: hax to check what's failing on Travis end end