-
Notifications
You must be signed in to change notification settings - Fork 72
ブログ記事のタグ入力ショートカットを作成 #8557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
ブログ記事のタグ入力ショートカットを作成 #8557
Conversation
@machida さん 記事を作成する際に重要なタグをボタンで選択できるようにいたしましたのでボタンのデザイン付けをお願いしたいです。 |
@lsesmpmido デザイン入れましたー |
@Ryooo-k さん |
@lsesmpmido |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsesmpmido
確認しました!テストに関して、一点だけコメントしてますのでご確認お願いします!
久しぶりのReactだったので依存配列やらクリーンアップ関数など忘れていたので勉強になりました👍
test/system/article/tags_test.rb
Outdated
fill_in 'タイトル', with: 'ショートカットボタンからのタグ追加テスト' | ||
fill_in '本文', with: 'タグショートカットボタンのテストです' | ||
find('button.js-tag-input-button', text: '注目の記事').click | ||
find('.tagify__input') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
質問させてください!ここのfind
はタグ追加まで待機することが目的ですか?ちょっと用途が分からなかったので教えてください🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すみません、こちらは'.tagify__input'の箇所に選択したタグが入力されてるかを確認する意図で書いたつもりだったんですが、たしかにこの書き方では不適切でしたねassert_selector('.tagify__tag', text: '注目の記事')
で確認できるように修正いたしました
105130d
to
997d25a
Compare
@Ryooo-k さん |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsesmpmido
確認しましたー!OKです🙆
997d25a
to
79f38ac
Compare
Issue
概要
いくつかの重要なタグをタイポしないように選択肢から入力できるようにしました。
変更確認方法
feature/add-shortcut-for-blog-tag
をローカルに取り込むgit fetch origin feature/add-shortcut-for-blog-tag
git switch feature/add-shortcut-for-blog-tag
foreman start -f Procfile.dev
でローカル環境を立ち上げるkomagata
、パスワード:testtest
Screenshot
変更前
変更後