diff --git a/config/locales/english_offers.en.yml b/config/locales/english_offers.en.yml index 92148ebd4..8dcbec3f5 100644 --- a/config/locales/english_offers.en.yml +++ b/config/locales/english_offers.en.yml @@ -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" diff --git a/test/components/common/notification_icon_test.rb b/test/components/common/notification_icon_test.rb index ae6f40682..9def12feb 100644 --- a/test/components/common/notification_icon_test.rb +++ b/test/components/common/notification_icon_test.rb @@ -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 @@ -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