discourse/spec/system/page_objects/components
Alan Guo Xiang Tan 2dd9ac6277
DEV: Improve PageObjects::Components::Sidebar#has_tag_section_links? (#22250)
Why this change?

Predicate matchers are poor at providing good error messages when it
fails if all the predicate matcher does is to return a boolean. Prior to
this change, we were using `has_css? && all?` to assert for the tag
section links. There are two problems here. Firstly, when one of the matchers
fail, the error message does not provide any indication of which matcher
failed making it hard to debug failures. Secondly, the matchers were not
able to assert for the ordering of the tag section links which is an
important behaviour to assert for.

This commit changes `PageObjects::Components::Sidebar#has_tag_section_links?`
such that we make use of assertions to ensure ordering. The usage of
`all` will also provide a clear error message when things go wrong.
2023-06-23 08:39:37 +08:00
..
ace_editor.rb DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
base.rb DEV: Change sidebar header dropdown to use wait_for_animation (#20627) 2023-03-10 14:54:57 +10:00
category_list.rb FIX: update unread and new count for categories (#22145) 2023-06-21 13:42:30 +10:00
composer.rb UX: Add required indicator to fields with required validation (#22096) 2023-06-14 11:25:05 -07:00
dialog.rb FIX: Blank dialog when auto-join selected in channel creation modal (#20405) 2023-02-22 17:38:54 +10:00
emoji_picker.rb DEV: Speed up core system tests (#21394) 2023-05-05 07:45:53 +08:00
fast_editor.rb FIX: Fast edit doesn’t work on content with certain characters (#20410) 2023-02-23 11:30:16 +08:00
legacy_header_dropdown.rb FIX: Override navigation menu to "legacy" via query param not working (#20402) 2023-02-22 06:43:14 +08:00
select_kit.rb DEV: Show form templates in the composer (#21190) 2023-05-29 14:47:18 -07:00
sidebar_header_dropdown.rb FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
sidebar.rb DEV: Improve PageObjects::Components::Sidebar#has_tag_section_links? (#22250) 2023-06-23 08:39:37 +08:00
topic_list.rb FIX: Incorrect topic tracking state count when a new category is created (#20506) 2023-03-06 10:13:10 +08:00
topic_query_filter.rb UX: Styling adjustments for filters page (#20768) 2023-03-23 06:28:47 +08:00