tests(docsAppE2E): fix race condition flake with switching to new frame

Closes #7569