test: Robustify testSessionRecordingShell
test: Robustify testSessionRecordingShell

Wait until the page built up instead of logging in and immediately out
again. login_and_go() does not wait very long, so that the subsequent
logout() can often cause a lot of unexpected message noise about
terminated channels and prematurely aborted resource loading.

Also allow authorize messages (from sudo), as the user is not
privileged.

Closes #13539
moraleslazaro/cockpit,mvollmer/cockpit,deryni/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,garrett/cockpit,martinpitt/cockpit,garrett/cockpit,mvollmer/cockpit,martinpitt/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,martinpitt/cockpit,cockpituous/cockpit,garrett/cockpit,cockpit-project/cockpit,deryni/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,mvollmer/cockpit,deryni/cockpit,garrett/cockpit,martinpitt/cockpit,martinpitt/cockpit,cockpituous/cockpit,deryni/cockpit,garrett/cockpit,cockpituous/cockpit,deryni/cockpit,moraleslazaro/cockpit,deryni/cockpit,mvollmer/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,deryni/cockpit