From 230dcfb862c1ffb9b552e6d5150ded2681d16acb Mon Sep 17 00:00:00 2001 From: machida Date: Fri, 30 Jan 2026 14:48:03 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=83=AC=E3=82=A4=E3=82=AD=E3=83=BC?= =?UTF-8?q?=E3=81=AA=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E7=99=BB=E9=8C=B2?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit assert_equal titleはCapybaraの待機機能を使わないため、 ページロード前にtitleを読み取る場合があった。 assert_selectorに変更してページロード完了を確実に待つようにした。 --- test/system/users/registration_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system/users/registration_test.rb b/test/system/users/registration_test.rb index 1f060f602ed..27c3c2298f1 100644 --- a/test/system/users/registration_test.rb +++ b/test/system/users/registration_test.rb @@ -6,8 +6,8 @@ module Users class RegistrationTest < ApplicationSystemTestCase test 'GET /users/new' do visit '/users/new' + assert_selector 'h1.auth-form__title', text: 'FBC参加登録' assert_selector 'form[name=user]' - assert_equal 'FBC参加登録 | FJORD BOOT CAMP(フィヨルドブートキャンプ)', title end test 'GET /users/new as an adviser' do