mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Change have_section_link
match to use exact text match. (#22148)
Today I learnt that `has_link?("text of link")` by default does an includes instead of looking for a link with the exact text. This is not the behaviour I want so I'm changing `PageObjects::Components::Sidebar.has_section_link?` to use the `exact_text` option instead.
This commit is contained in:

committed by
GitHub

parent
3802d0de9d
commit
d60c90aef1
@ -99,7 +99,7 @@ describe "Custom sidebar sections", type: :system do
|
||||
section_modal.save
|
||||
|
||||
expect(sidebar).to have_section("Edited section")
|
||||
expect(sidebar).to have_section_link("Edited Tag")
|
||||
expect(sidebar).to have_section_link("Edited Tags")
|
||||
|
||||
expect(sidebar).to have_no_section_link("Sidebar Categories")
|
||||
end
|
||||
|
Reference in New Issue
Block a user