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:
Alan Guo Xiang Tan
2023-05-05 08:16:23 +08:00
committed by GitHub
parent e323628d8a
commit 7ff8e5580f
5 changed files with 26 additions and 9 deletions

View File

@ -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