Skip to content
Snippets Groups Projects
Commit 1e639b8f authored by Phil Hughes's avatar Phil Hughes
Browse files

Merge branch 'slashmanov/fix-flaky-file-tree-test' into 'master'

Fix flaky file tree sidebar test

See merge request !137628



Merged-by: default avatarPhil Hughes <me@iamphill.com>
Approved-by: default avatarNivetha Prabakaran <nprabakaran@gitlab.com>
Approved-by: default avatarPhil Hughes <me@iamphill.com>
Co-authored-by: default avatarStanislav Lashmanov <slashmanov@gitlab.com>
parents 6956b683 e4ed868e
No related branches found
No related tags found
1 merge request!137628Fix flaky file tree sidebar test
Pipeline #1082827451 passed
......@@ -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