Skip to content

Commit de69496

Browse files
committed
Fix false-negative goal absence assertion
The selector `.d-block.color-fg-muted` never matched anything because the goal element uses neither `d-block` nor that class combination. Asserts against the goal element's DOM id instead.
1 parent b68b858 commit de69496

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/backlogs/spec/components/backlogs/sprint_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def menu_items
262262

263263
context "when the sprint has no goal for the project" do
264264
it "does not render goal text" do
265-
expect(rendered_component).to have_no_css(".d-block.color-fg-muted")
265+
expect(rendered_component).to have_no_css("#sprint_#{sprint.id}_goal")
266266
end
267267

268268
it "does not describe the sprint heading" do

0 commit comments

Comments
 (0)