diff --git a/app/controllers/external_works_controller.rb b/app/controllers/external_works_controller.rb index 7bb9fe4f356..200cbf62c44 100644 --- a/app/controllers/external_works_controller.rb +++ b/app/controllers/external_works_controller.rb @@ -4,6 +4,7 @@ class ExternalWorksController < ApplicationController before_action :check_user_status, only: [:new] def new + @page_subtitle = t(".page_title") @bookmarkable = ExternalWork.new @bookmark = Bookmark.new end diff --git a/app/views/external_works/new.html.erb b/app/views/external_works/new.html.erb index 4ba948abb8b..757a2083bbf 100644 --- a/app/views/external_works/new.html.erb +++ b/app/views/external_works/new.html.erb @@ -1,2 +1,2 @@ -

<%= ts("Bookmark an external work") %>

+

<%= t(".page_heading") %>

<%= render 'bookmarks/bookmark_form', :bookmarkable => @bookmarkable, :bookmark => @bookmark, :button_name => ts("Create"), :action => 'create' %> diff --git a/config/locales/controllers/en.yml b/config/locales/controllers/en.yml index e1198536650..2e3ad663d51 100644 --- a/config/locales/controllers/en.yml +++ b/config/locales/controllers/en.yml @@ -203,6 +203,8 @@ en: timeout_error: browser_title: Timeout Error external_works: + new: + page_title: Bookmark External Work update: successfully_updated: External work was successfully updated. fandoms: diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 630a3291f93..8a0dec95baa 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -1076,6 +1076,8 @@ en: external_works: edit: works_languages_help_title: Languages help + new: + page_heading: Bookmark External Work notice: This work isn't hosted on the Archive so this blurb might not be complete or accurate. fandoms: index: diff --git a/features/bookmarks/bookmark_external.feature b/features/bookmarks/bookmark_external.feature index 4fb4034b698..a9f236f3f7f 100644 --- a/features/bookmarks/bookmark_external.feature +++ b/features/bookmarks/bookmark_external.feature @@ -210,3 +210,8 @@ Feature: Create bookmarks of external works When I follow "A Work Not Posted To The AO3" Then I should see "This work isn't hosted on the Archive" And I should see a link to "https://example.com/external_work" within "h4" + + Scenario: A user should see the correct title on the external bookmark page + Given I am logged in as "bookmarker" + When I am on the new external work page + Then I should see the page title "Bookmark External Work"