Skip to content
Snippets Groups Projects
Commit e4ed868e authored by Stanislav Lashmanov's avatar Stanislav Lashmanov
Browse files

Fix flaky file tree sidebar test

parent a9abb0cc
No related branches found
No related tags found
1 merge request!137628Fix flaky file tree sidebar test
......@@ -62,6 +62,11 @@
context 'when navigating to the next file' do
before do
click_link 'Next'
wait_for_requests
# when we click the Next button the viewport will be scrolled a bit into the diffs view
# this will cause for the file tree sidebar height to be recalculated
# because this logic is async and debounced twice we have to wait for the layout to stabilize
sleep(1)
end
it_behaves_like 'last entry clickable'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment