mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
DEV: Speed up chat plugin system tests (#21399)
See e323628d8a363ea29d1f341b95ffcdf8f3c09fca for more details. This commit speeds up the tests by roughly 10 seconds locally where the default wait time is 2 seconds. On CI, this speeds up the tests by 20 seconds where the default wait time is 4 seconds.
This commit is contained in:

committed by
GitHub

parent
e323628d8a
commit
7ff8e5580f
@ -277,7 +277,7 @@ RSpec.describe "Navigation", type: :system, js: true do
|
||||
visit("/chat/c/#{category_channel.slug}/#{category_channel.id}")
|
||||
find("#site-logo").click
|
||||
|
||||
expect(sidebar_component).not_to have_section_link(category_channel.name, active: true)
|
||||
expect(sidebar_component).to have_no_section_link(category_channel.name, active: true)
|
||||
end
|
||||
end
|
||||
|
||||
@ -299,7 +299,7 @@ RSpec.describe "Navigation", type: :system, js: true do
|
||||
sidebar_component.click_link(category_channel.name)
|
||||
chat_drawer_page.close
|
||||
|
||||
expect(sidebar_component).not_to have_section_link(category_channel.name, active: true)
|
||||
expect(sidebar_component).to have_no_section_link(category_channel.name, active: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user