Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Mar 18, 2024
1 parent 86f69c2 commit f0c0538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/support/pages/notifications/center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ def bell_element
end

def expect_no_toaster
expect(page).to have_no_css('.op-toast.-info', wait: 10)
expect(page).to have_no_css('.op-toast.-notification', wait: 10)
end

def expect_toast
expect(page).to have_css('.op-toast.-info', wait: 10)
expect(page).to have_css('.op-toast.-notification', wait: 10)
end

def update_via_toaster
page.find('.op-toast.-info a', wait: 10).click
page.find('.op-toast.-notification a', wait: 10).click
end
end
end
Expand Down

0 comments on commit f0c0538

Please sign in to comment.