Add Edit tooptip for action icon in orders table

This commit is contained in:
Jean-Baptiste Bellet
2023-06-08 14:20:09 +02:00
parent 22a3b31172
commit 91d24ba8ab
2 changed files with 1 additions and 3 deletions

View File

@@ -41,7 +41,7 @@
%div.row-loading-icons
- if local_assigns[:success]
%i.success.icon-ok-sign{"data-controller": "ephemeral"}
%a.icon_link.with-tip.icon-edit.no-text{href: edit_admin_order_path(order), 'ofn-with-tip' => t('spree.admin.orders.index.edit')}
%a.icon_link.with-tip.icon-edit.no-text{href: edit_admin_order_path(order), "data-controller": "tooltip", "data-tooltip-tip-value": t('spree.admin.orders.index.edit'), "data-tooltip-target": "element"}
- if order.ready_to_ship?
%div{ "data-controller": "tooltip", "data-tooltip-tip-value": t('spree.admin.orders.index.ship') }
%button.icon-road.icon_link.with-tip.no-text{"data-reflex": "click->Admin::OrdersReflex#ship", "data-id": order.id.to_s,

View File

@@ -697,8 +697,6 @@ distributors: [distributor4, distributor5]) }
end
it "displays Edit tooltip" do
pending("issue #10956")
within "tr#order_#{order.id}" do
# checks shipment state
expect(page).to have_content "PENDING"