diff --git a/config/locales/english_offers.en.yml b/config/locales/english_offers.en.yml index f8f7c1adf..1f9f9a229 100644 --- a/config/locales/english_offers.en.yml +++ b/config/locales/english_offers.en.yml @@ -51,7 +51,7 @@ en: you_won: "You won" you_lost: "Someone else won" you_lose: 'You lost the auction' - new_bid: "New bid!" + new_bid: "New bid" form: bidder: "Bidder" diff --git a/config/locales/english_offers.et.yml b/config/locales/english_offers.et.yml index 4ddcef95f..512931449 100644 --- a/config/locales/english_offers.et.yml +++ b/config/locales/english_offers.et.yml @@ -48,7 +48,7 @@ et: you_won: "Oled võitnud" you_lost: "Teine pakkuja võitis" you_lose: 'Kaotasid oksjoni' - new_bid: "Uus pakkumine!" + new_bid: "Uus pakkumine" form: bidder: "Pakkuja" diff --git a/test/components/common/notification_icon_test.rb b/test/components/common/notification_icon_test.rb index 9def12feb..73c7ea7c8 100644 --- a/test/components/common/notification_icon_test.rb +++ b/test/components/common/notification_icon_test.rb @@ -26,7 +26,7 @@ def test_render_differnt_types assert_selector "span.o-trophy-icon" assert_selector "h5.c-notification__header__title" do - assert_text(/^You won! ?/) + assert_text(I18n.t('english_offers.index.you_won')) assert_selector "span.o-new" end @@ -34,7 +34,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(/^You Lose! ?/) + assert_text(I18n.t('english_offers.index.you_lose')) assert_selector "span.o-new" end @@ -50,7 +50,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-trophy-icon" assert_selector "h5.c-notification__header__title" do - assert_text(/^You won! ?/) + assert_text(I18n.t('english_offers.index.you_won')) assert_selector "span.o-new" end @@ -58,7 +58,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(/^You Lose! ?/) + assert_text(I18n.t('english_offers.index.you_lose')) assert_selector "span.o-new" end diff --git a/test/test_helper.rb b/test/test_helper.rb index 5f16f1466..4940dd926 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -25,6 +25,8 @@ class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all + parallelize(workers: 4) + # Add more helper methods to be used by all tests here... def clear_email_deliveries ActionMailer::Base.deliveries.clear