cypress: Fix flaky tests related to sidebar
Increase wait time when testing sidebar expanding / collapsing to a value greater than the sidebar animation one (300 ms).
CSS class related to expanded / collapsed sidebar is set at the beginning of the
animation so we are unfortunately forced to use cy.wait()
here.
Related to #2341 (closed)
Migrated from D2932 (view on Phabricator)