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:
David Cook
2023-11-24 14:21:26 +11:00
parent 994dd606b9
commit f034e46aed
2 changed files with 4 additions and 4 deletions

View File

@@ -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