discourse/spec/system/page_objects
Martin Brennan 30f0afe873
DEV: Fix flaky emoji deny list system spec (#21180)
This was failing quite often with the following error:

```
 1) Emoji deny list when using composer should remove denied emojis from emoji picker
     Failure/Error: find("#{COMPOSER_ID} .emoji-picker")

     Capybara::ElementNotFound:
       Unable to find css "#reply-control .emoji-picker"
```

This was because our `click_toolbar_button` call on the Composer
page object used a number for the position of the toolbar button,
which can be flaky since there are things that hide/show toolbar
buttons or change their position.

Each toolbar button in the composer has a CSS class, so it is
more reliable to use that instead. Also fixed an instance of
calling `has_X?` method directly instead of using the
`have_x` rspec matcher.
2023-04-21 10:55:05 +10:00
..
components DEV: Fix flaky emoji deny list system spec (#21180) 2023-04-21 10:55:05 +10:00
modals DEV: configurable public sidebar sections (#20303) 2023-02-22 08:55:44 +11:00
pages FEATURE: Add new don't feed the trolls feature (#21001) 2023-04-20 15:49:35 +08:00
cdp.rb FEATURE: Reacting to MessageBus in chat thread panel (#21070) 2023-04-13 14:45:50 +02:00