We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb195f1 commit 85d63d0Copy full SHA for 85d63d0
test/system/article/tags_test.rb
@@ -20,4 +20,20 @@ class Article::TagsTest < ApplicationSystemTestCase
20
created_article = Article.find_by(title: 'タグ追加のテスト記事')
21
assert_equal tags, created_article.tag_list.sort
22
end
23
+
24
+ test 'can add tag using shortcut buttons' do
25
+ visit_with_auth new_article_url, 'komagata'
26
+ fill_in 'タイトル', with: 'ショートカットボタンからのタグ追加テスト'
27
+ fill_in '本文', with: 'タグショートカットボタンのテストです'
28
+ find('button.tag-item', text: '注目の記事').click
29
+ find('.tagify__input')
30
+ assert_text '注目の記事'
31
+ page.accept_confirm do
32
+ click_on '公開する'
33
+ end
34
+ assert_text '記事を作成しました'
35
36
+ created_article = Article.find_by(title: 'ショートカットボタンからのタグ追加テスト')
37
+ assert_includes created_article.tag_list, '注目の記事'
38
39
0 commit comments