mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix label
Strangely, the spec passed when run locally, but not in CI. It's a curious case of the wrong letter case.
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
.field.checkbox
|
||||
= variant_form.label :on_demand do
|
||||
= variant_form.check_box :on_demand, 'data-action': 'change->toggle-control#disableIfPresent change->popout#closeIfChecked'
|
||||
= t('admin.products_page.columns.on_demand')
|
||||
= t(:on_demand)
|
||||
%td.align-left
|
||||
.content= variant.product.supplier&.name # same as product
|
||||
%td.align-left
|
||||
|
||||
@@ -244,9 +244,9 @@ describe 'As an admin, I can see the new product page', feature: :admin_style_v3
|
||||
it "switches stock to on-demand" do
|
||||
within row_containing_name("Medium box") do
|
||||
click_on "On Hand" # activate stock popout
|
||||
check "On Demand"
|
||||
check "On demand"
|
||||
|
||||
expect(page).to have_css "button[aria-label='On Hand']", text: "On Demand"
|
||||
expect(page).to have_css "button[aria-label='On Hand']", text: "On demand"
|
||||
end
|
||||
|
||||
expect {
|
||||
@@ -256,7 +256,7 @@ describe 'As an admin, I can see the new product page', feature: :admin_style_v3
|
||||
}.to change{ variant_a1.on_demand }.to(true)
|
||||
|
||||
within row_containing_name("Medium box") do
|
||||
expect(page).to have_css "button[aria-label='On Hand']", text: "On Demand"
|
||||
expect(page).to have_css "button[aria-label='On Hand']", text: "On demand"
|
||||
end
|
||||
|
||||
pending
|
||||
|
||||
Reference in New Issue
Block a user