Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jun 21, 2024
1 parent acd62ec commit 3c7ab9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/locales/english_offers.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ en:
claim_your_domain: "Claim your domain"
you_won: "You won"
you_lost: "Someone else won"
new_bid: "New bid"
new_bid: "New bid!"

form:
bidder: "Bidder"
Expand Down
4 changes: 2 additions & 2 deletions test/components/common/notification_icon_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_render_differnt_types
render_inline(Common::Notifications::Icon::Component.new(notification: @notification, readed: false))
assert_selector "span.o-hammer-icon"
assert_selector "h5.c-notification__header__title" do
assert_text(/^New Bid! ?/)
assert_text(I18n.t('english_offers.index.new_bid'))
assert_selector "span.o-new"
end

Expand All @@ -66,7 +66,7 @@ def test_render_differnt_types
render_inline(Common::Notifications::Icon::Component.new(notification: @notification, readed: true))
assert_selector "span.c-notification__header__icon.o-hammer-icon"
assert_selector "h5.c-notification__header__title" do
assert_text(/^New Bid! ?/)
assert_text(I18n.t('english_offers.index.new_bid'))
assert_selector "span.o-new"
end
end
Expand Down

0 comments on commit 3c7ab9b

Please sign in to comment.