From e6e0042cb6c1b54cecff1f4e5b2776a51ad3f03b Mon Sep 17 00:00:00 2001 From: a-terumoto-gs Date: Fri, 8 Mar 2024 11:24:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?class=E3=82=92id=E3=81=AB=E3=80=81id?= =?UTF-8?q?=E5=90=8D=E3=82=92js-choices-single-select=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pages/_form.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/_form.html.slim b/app/views/pages/_form.html.slim index 3dd3f16a89e..089033f7904 100644 --- a/app/views/pages/_form.html.slim +++ b/app/views/pages/_form.html.slim @@ -7,7 +7,7 @@ .form-item = f.label :practice, class: 'a-form-label' .select-practices - = f.select(:practice_id, practice_options(categories), { include_blank: '関連プラクティスを指定しない' }, { class: 'js-select2' }) + = f.select(:practice_id, practice_options(categories), { include_blank: '関連プラクティスを指定しない' }, { id: 'js-choices-single-select' }) .a-form-help p | どんな内容が書かれているドキュメントかを予想できるタイトルを付けましょう。 From d8a1640f48d9178f4bafa6d39271ab0b7ad5e4d4 Mon Sep 17 00:00:00 2001 From: a-terumoto-gs Date: Fri, 8 Mar 2024 16:28:31 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/system/pages_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/system/pages_test.rb b/test/system/pages_test.rb index 56a9411b2c8..25679f23731 100644 --- a/test/system/pages_test.rb +++ b/test/system/pages_test.rb @@ -125,8 +125,8 @@ class PagesTest < ApplicationSystemTestCase visit_with_auth new_page_path, 'kimura' fill_in 'page[title]', with: 'Docに関連プラクティスを指定' fill_in 'page[body]', with: 'Docに関連プラクティスを指定' - first('.select2-container').click - find('li.select2-results__option[role="option"]', text: '[UNIX] Linuxのファイル操作の基礎を覚える').click + first('.choices__inner').click + find('.choices__item--choice', text: '[UNIX] Linuxのファイル操作の基礎を覚える').click click_button 'Docを公開' assert_text 'Linuxのファイル操作の基礎を覚える' end @@ -182,8 +182,8 @@ class PagesTest < ApplicationSystemTestCase visit_with_auth new_page_path, 'kimura' fill_in 'page[title]', with: 'Docに関連プラクティスを指定' fill_in 'page[body]', with: 'Docに関連プラクティスを指定' - first('.select2-container').click - find('li.select2-results__option[role="option"]', text: '[UNIX] Linuxのファイル操作の基礎を覚える').click + first('.choices__inner').click + find('.choices__item--choice', text: '[UNIX] Linuxのファイル操作の基礎を覚える').click click_button 'Docを公開' assert_text 'Linuxのファイル操作の基礎を覚える'