Fixes admin menu link when create a new widget

This commit is contained in:
decabeza
2018-11-08 12:53:33 +01:00
parent 06969e0ec7
commit 13b3d9cebc
3 changed files with 15 additions and 10 deletions

View File

@@ -19,7 +19,16 @@ feature 'Homepage' do
let(:user_recommendations) { Setting.where(key: 'feature.user.recommendations').first }
let(:user) { create(:user) }
scenario "Header" do
context "Header" do
scenario "Admin menu links to homepage path" do
visit new_admin_widget_card_path(header_card: true)
click_link Setting['org_name'] + " Administration"
expect(page).to have_current_path(admin_root_path)
end
end
context "Feeds" do
@@ -128,4 +137,4 @@ feature 'Homepage' do
expect(page).to have_content("Recommendations that may interest you")
end
end
end