DEV: Remove flaky spec (#24795)

This commit is contained in:
Penar Musaraj 2023-12-08 11:43:17 -05:00 committed by GitHub
parent e227008c65
commit ce723caae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -107,17 +107,4 @@ describe "Topic list focus", type: :system do
expect(page).to have_css("body.navigation-topics")
expect(focussed_topic_id).to eq(oldest_topic.id)
end
it "sets focus to the last post when navigating to a topic" do
extra_posts = Fabricate.times(5, :post, topic: topics[2])
visit("/latest")
discovery.topic_list.visit_topic_last_reply_via_keyboard(topics[2])
# send Tab key twice, the first event serves to focus the window
find("body").native.send_keys :tab
find("body").native.send_keys :tab
expect(focussed_post_id).to eq(topics[2].posts.last.id)
end
end