mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Requested changes after review
- modified css to increase clicking area - modified spec to more straightfoward and more user oriented link
This commit is contained in:
@@ -181,6 +181,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
> details {
|
||||
margin: -7px -15px;
|
||||
padding: 7px 15px;
|
||||
}
|
||||
|
||||
> details > summary {
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
@@ -188,6 +193,8 @@
|
||||
text-transform: uppercase;
|
||||
font-size: 85%;
|
||||
font-weight: 600;
|
||||
margin: -8px -15px;
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
> details > summary:after {
|
||||
|
||||
@@ -181,6 +181,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
> details {
|
||||
margin: -7px -15px;
|
||||
padding: 7px 15px;
|
||||
}
|
||||
|
||||
> details > summary {
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
@@ -188,6 +193,8 @@
|
||||
text-transform: uppercase;
|
||||
font-size: 85%;
|
||||
font-weight: 600;
|
||||
margin: -8px -15px;
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
> details > summary:after {
|
||||
|
||||
@@ -719,7 +719,7 @@ describe '
|
||||
it "should not display links but a js alert" do
|
||||
visit spree.edit_admin_order_path(order)
|
||||
|
||||
find("#links-dropdown .ofn-drop-down details").click
|
||||
find("summary", text: "ACTIONS").click
|
||||
expect(page).to have_link "Send Invoice", href: "#"
|
||||
expect(page).to have_link "Print Invoice", href: "#"
|
||||
|
||||
@@ -729,7 +729,7 @@ describe '
|
||||
expect(message)
|
||||
.to eq "#{distributor1.name} must have a valid ABN before invoices can be used."
|
||||
|
||||
find("#links-dropdown .ofn-drop-down details").click
|
||||
find("summary", text: "ACTIONS").click
|
||||
message = accept_prompt do
|
||||
click_link "Send Invoice"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user