cypress: Fix some flaky tests when executed in parallel
It seems there is an issue with the before hooks of cypress regarding
their execution order when running tests in parallel.
So turn some before hooks into beforeEach ones to fix some flaky tests.