From 6b16274046088644bfbebe459d0407dd3308ee58 Mon Sep 17 00:00:00 2001 From: bakaneko Date: Tue, 11 Apr 2023 16:05:49 +0900 Subject: [PATCH] use localized text --- tests/Browser/BeatmapDiscussionPostsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Browser/BeatmapDiscussionPostsTest.php b/tests/Browser/BeatmapDiscussionPostsTest.php index 2df6047ba82..44ed350ddef 100644 --- a/tests/Browser/BeatmapDiscussionPostsTest.php +++ b/tests/Browser/BeatmapDiscussionPostsTest.php @@ -48,7 +48,7 @@ public function testConcurrentPostAfterResolve() protected function writeReply(Browser $browser, $reply) { $browser->with(static::NEW_REPLY_SELECTOR, function ($newReply) use ($reply) { - $newReply->press('Respond') + $newReply->press(trans('beatmap_discussions.reply.open.user')) ->waitFor('textarea') ->type('textarea', $reply); }); @@ -59,7 +59,7 @@ protected function postReply(Browser $browser, $action) $browser->with(static::NEW_REPLY_SELECTOR, function ($newReply) use ($action) { switch ($action) { case 'resolve': - $newReply->press('Reply and Resolve'); + $newReply->press(trans('common.buttons.reply_resolve')); break; default: $newReply->keys('textarea', '{enter}');