Merge pull request #4825 from consul/fix_selecting_text_in_budget_header

Fix link and text selection in budget header
This commit is contained in:
Sebastia
2022-05-04 09:43:40 +02:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -989,12 +989,12 @@
min-height: $line-height * 25;
padding-bottom: $line-height;
padding-top: $line-height * 4;
z-index: -5;
&.with-background-image {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
z-index: 0;
}
h1 {

View File

@@ -458,6 +458,15 @@ describe "Budgets" do
expect(page).to have_content "So far you've supported 0 projects."
end
scenario "Main link takes you to the defined URL" do
budget.update!(main_link_text: "See other budgets!", main_link_url: budgets_path)
visit budget_path(budget)
click_link "See other budgets!"
expect(page).to have_current_path budgets_path
end
end
context "In Drafting phase" do