A platform for community discussion. Free, open, simple.
DEV: Fix RSVP calendar prompt and DTabs focus flakes (#44483)
Jarek Radosz2f32ab2dbef4
diff --git a/frontend/discourse/tests/integration/ui-kit/d-tabs-test.gjs b/frontend/discourse/tests/integration/ui-kit/d-tabs-test.gjsindex d60bdf1aa8e..f70a08e5911 100644--- a/frontend/discourse/tests/integration/ui-kit/d-tabs-test.gjs+++ b/frontend/discourse/tests/integration/ui-kit/d-tabs-test.gjs@@ -836,7 +836,10 @@ module("Integration | ui-kit | DTabs", function (hooks) {</template>);- await focus("[data-panel-input]");+ // Native only: the `focus` helper adds a synthetic focusin in an unfocused+ // window, with no matching focusout on removal.+ document.querySelector("[data-panel-input]").focus();+ await settled();state.showInput = false;await settled();await nextFrame();diff --git a/plugins/discourse-events/spec/system/rsvp_calendar_prompt_spec.rb b/plugins/discourse-events/spec/system/rsvp_calendar_prompt_spec.rbindex 2c19374bba4..c6a1a98b96f 100644--- a/plugins/discourse-events/spec/system/rsvp_calendar_prompt_spec.rb+++ b/plugins/discourse-events/spec/system/rsvp_calendar_prompt_spec.rb@@ -13,8 +13,7 @@ RSpec.describe "RSVP calendar prompt" dosign_in(user)end- it "offers to add the event to a calendar after Going, including when rejoining",- time: Time.zone.parse("2026-09-14 12:00:00") do+ it "offers to add the event to a calendar after Going, including when rejoining" dopost =PostCreator.create!(admin,