discourse/spec/system/composer
Alan Guo Xiang Tan e1ba4c6b73
PERF: Client side triggering multiple requests when opening composer (#21823)
What is the problem?

There are two problems being fixed here:

1. When opening the composer, we are seeing multiple requests made to
   the `/composer_messages` endpoint. This is due to our use of the
   `transitionend` event on the `#reply-control` element. The event is
   fired once for each transition event and the `#reply-control` element
   has multiple transition events.

2. System tests have animations disabled so the `transitionend` event
   does not fire at all.

What is the solution?

Instead of relying on the `transitionend` event, we can instead just
observer the `composerState` property of the `ComposerBody` component
and trigger the `composer:opened` appEvent with a delay that is similar
to the transition duration used for the `ComposerBody` component.
2023-05-31 20:58:45 +08:00
..
category_templates_spec.rb DEV: Avoid waiting full capybara default wait time (#21842) 2023-05-31 07:00:16 +08:00
default_to_subcategory_spec.rb DEV: fix tag synonyms flakey specs (#21787) 2023-05-28 15:35:55 +02:00
dont_feed_the_trolls_popup_spec.rb PERF: Client side triggering multiple requests when opening composer (#21823) 2023-05-31 20:58:45 +08:00
review_media_unless_trust_level_spec.rb WIP: Skip system specs with upload fabricators (#20821) 2023-03-27 13:11:17 -04:00