test: Fix Machine.login_and_go() TLS mode
test: Fix Machine.login_and_go() TLS mode

When calling this method with `tls=true`, it only configured cockpit-ws
for TLS, but still opened the requested page with http://. This only
ended up as https:// due to cockpit-ws' automatic TLS redirection. But
that is tested separately, and not in these parts of check-connection
TestConnection.testTls that cover TLS cookie handling.

Add a tls parameter to Browser.login_and_go() and Browser.open() as
well, and pass it through appropriately, so that these use https://
right away.

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