mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 09:33:39 +08:00
DEV: Increase topic_page_spec wait time (#22063)
This commit is contained in:
parent
589add7bb5
commit
843287d584
|
@ -16,7 +16,7 @@ describe "Topic page", type: :system do
|
||||||
find("#toc-h2-testing").hover
|
find("#toc-h2-testing").hover
|
||||||
find("a.anchor").click
|
find("a.anchor").click
|
||||||
|
|
||||||
try_until_success(timeout: 5) do
|
try_until_success(timeout: 10) do
|
||||||
expect(current_url).to match("/t/#{topic.slug}/#{topic.id}#toc-h2-testing")
|
expect(current_url).to match("/t/#{topic.slug}/#{topic.id}#toc-h2-testing")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -30,7 +30,7 @@ describe "Topic page", type: :system do
|
||||||
find("#toc-h2-testing").hover
|
find("#toc-h2-testing").hover
|
||||||
find("a.anchor").click
|
find("a.anchor").click
|
||||||
|
|
||||||
try_until_success(timeout: 5) do
|
try_until_success(timeout: 10) do
|
||||||
expect(current_url).to match("/forum/t/#{topic.slug}/#{topic.id}#toc-h2-testing")
|
expect(current_url).to match("/forum/t/#{topic.slug}/#{topic.id}#toc-h2-testing")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user