tests: robustify machines' testNetworkSettings by checking that all networks are gone
tests: robustify machines' testNetworkSettings by checking that all networks are gone

In this test we need to wait that all networks get removed before
opening the NIC edit dialog.
Previously we added the wait condition that the total networks are 0.

Add two extra conditions for active and inactive networks seperately.

Closes #11891

moraleslazaro/cockpit,cockpituous/cockpit,deryni/cockpit,deryni/cockpit,mvollmer/cockpit,garrett/cockpit,garrett/cockpit,martinpitt/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,martinpitt/cockpit,deryni/cockpit,martinpitt/cockpit,cockpituous/cockpit,deryni/cockpit,garrett/cockpit,cockpit-project/cockpit,mvollmer/cockpit,martinpitt/cockpit,garrett/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,deryni/cockpit,cockpit-project/cockpit,deryni/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,garrett/cockpit,martinpitt/cockpit,cockpit-project/cockpit,mvollmer/cockpit,deryni/cockpit,cockpit-project/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,mvollmer/cockpit,moraleslazaro/cockpit