e2e: Fix flaky search tabs test by waiting for element to be active
Created by: attfarhan
This test was still flaky, due to the check for the window location occurring before we arrive at the new URL. I added a waitForFunction
to make sure the correct tab is already active.