mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 21:36:15 +08:00
788bcb7736
Honestly seems like it's being in some weird loop for discourse/hashtag_autocomplete_spec.rb for this: ```ruby within topic_page.post_by_number(2) do cooked_hashtags = page.all(".hashtag-cooked", count: 2) expect(cooked_hashtags[0]["outerHTML"]).to eq(<<~HTML.chomp) <a class=\"hashtag-cooked\" href=\"#{category.url}\" data-type=\"category\" data-slug=\"cool-cat\"><svg class=\"fa d-icon d-icon-folder svg-icon svg-node\"><use href=\"#folder\"></use></svg><span>Cool Category</span></a> HTML expect(cooked_hashtags[1]["outerHTML"]).to eq(<<~HTML.chomp) <a class=\"hashtag-cooked\" href=\"#{tag.url}\" data-type=\"tag\" data-slug=\"cooltag\"><svg class=\"fa d-icon d-icon-tag svg-icon svg-node\"><use href=\"#tag\"></use></svg><span>cooltag</span></a> HTML end ``` I see this many times in the full logs with `SELENIUM_VERBOSE_DRIVER_LOGS=1`: ``` COMMAND FindElements { "using": "css selector", "value": "#post_2" } Followed by: COMMAND FindChildElements { "id": "26dfe542-659b-46cc-ac8c-a6c2d9cbdf0a", "using": "css selector", "value": ".hashtag-cooked" } ``` Over and over and over, there are 58 such occurrences. I am beginning to think `within` is just poison that should be avoided. |
||
---|---|---|
.. | ||
list_channels | ||
page_objects | ||
shortcuts | ||
user_menu_notifications | ||
user_status | ||
anonymous_spec.rb | ||
archive_channel_spec.rb | ||
bookmark_message_spec.rb | ||
browse_page_spec.rb | ||
channel_about_page_spec.rb | ||
channel_info_pages_spec.rb | ||
channel_members_page_spec.rb | ||
channel_selector_modal_spec.rb | ||
channel_settings_page_spec.rb | ||
chat_channel_spec.rb | ||
chat_composer_spec.rb | ||
closed_channel_spec.rb | ||
create_channel_spec.rb | ||
deleted_channel_spec.rb | ||
edited_message_spec.rb | ||
flag_message_spec.rb | ||
hashtag_autocomplete_spec.rb | ||
jit_messages_spec.rb | ||
message_notifications_mobile_spec.rb | ||
message_notifications_with_sidebar_spec.rb | ||
move_message_to_channel_spec.rb | ||
navigation_spec.rb | ||
react_to_message_spec.rb | ||
read_only_spec.rb | ||
replying_indicator_spec.rb | ||
sidebar_navigation_menu_spec.rb | ||
sidebars_spec.rb | ||
silenced_user_spec.rb | ||
unfollow_dm_channel_spec.rb | ||
user_card_spec.rb | ||
user_chat_preferences_spec.rb | ||
visit_channel_spec.rb |