diff --git a/app/views/works/index.html.slim b/app/views/works/index.html.slim index de1c2c8b9d3..7a1fd23d537 100644 --- a/app/views/works/index.html.slim +++ b/app/views/works/index.html.slim @@ -6,7 +6,7 @@ header.page-header .page-header__inner .page-header__start h2.page-header__title - = title + | みんなのポートフォリオ .page-header__end .page-header-actions ul.page-header-actions__items diff --git a/test/system/works_test.rb b/test/system/works_test.rb index 2a6ec0559bc..9fead42b900 100644 --- a/test/system/works_test.rb +++ b/test/system/works_test.rb @@ -7,6 +7,7 @@ class WorksTest < ApplicationSystemTestCase visit_with_auth portfolios_path, 'kimura' assert_equal 'みんなのポートフォリオ | FBC', title assert_selector "meta[property='og:title'][content='みんなのポートフォリオ']", visible: false + assert_selector 'h2.page-header__title', text: 'みんなのポートフォリオ' assert_text works(:work1).title end