Skip to content

Commit

Permalink
Add title expects to my page
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Dec 20, 2024
1 parent 9256510 commit 4575180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/my_page/spec/features/my/my_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
let(:my_page) do
Pages::My::Page.new
end
let(:global_html_title) { Components::HtmlTitle.new }

before do
login_as user
Expand Down Expand Up @@ -98,6 +99,8 @@ def find_area(name)
end

it "renders the default view, allows altering and saving" do
global_html_title.expect_first_segment "My page"

# Waits for the default view to be created
my_page.expect_toast(message: "Successful update")

Expand Down
1 change: 1 addition & 0 deletions spec/features/homescreen/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
let(:user) { build_stubbed(:user) }
let!(:project) { create(:public_project, identifier: "public-project") }
let(:general_settings_page) { Pages::Admin::SystemSettings::General.new }
let(:global_html_title) { Components::HtmlTitle.new }

it "is reachable by the global menu" do
login_as user
Expand Down

0 comments on commit 4575180

Please sign in to comment.