kubernetes: Run tests after policy data loads
kubernetes: Run tests after policy data loads

Because projectPolicy listens on loader and then loads
more objects, wait for that load to finish before starting
the tests. The reason this test wasn't flaking is that
in both cases the rolesArray.length happened to be 2 even
though there it was actually returning different objects
["admin", "registry-admin"] in one case and
["edit", "registry-admin"] in the other.

Closes #4527
Reviewed-by: Stef Walter <8a7fbf0f15d3ad982af54ef28f5c117d2494b76c@redhat.com>

dperpeet/cockpit,larskarlitski/cockpit,martinpitt/cockpit,petervo/cockpit,xhad/cockpit,stefwalter/cockpit,cockpituous/cockpit,larsu/cockpit,sgallagher/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,martinpitt/cockpit,martinpitt/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,sgallagher/cockpit,mareklibra/cockpit,larsu/cockpit,petervo/cockpit,mareklibra/cockpit,andreasn/cockpit,petervo/cockpit,deryni/cockpit,xhad/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,martinpitt/cockpit,deryni/cockpit,larsu/cockpit,harishanand95/cockpit,petervo/cockpit,cockpit-project/cockpit,vanloswang/cockpit,andreasn/cockpit,deryni/cockpit,xhad/cockpit,Scribery/cockpit,harishanand95/cockpit,sgallagher/cockpit,arilivigni/cockpit,harishanand95/cockpit,xhad/cockpit,cockpit-project/cockpit,larsu/cockpit,larskarlitski/cockpit,garrett/cockpit,Scribery/cockpit,sgallagher/cockpit,arilivigni/cockpit,andreasn/cockpit,cockpit-project/cockpit,sgallagher/cockpit,xhad/cockpit,larskarlitski/cockpit,Scribery/cockpit,stefwalter/cockpit,stefwalter/cockpit,mvollmer/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,dperpeet/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,sgallagher/cockpit,mvollmer/cockpit,dperpeet/cockpit,vanloswang/cockpit,andreasn/cockpit,michalskrivanek/cockpit,vanloswang/cockpit,harishanand95/cockpit,stefwalter/cockpit,harishanand95/cockpit,Scribery/cockpit,mareklibra/cockpit,vanloswang/cockpit,petervo/cockpit,deryni/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,Scribery/cockpit,xhad/cockpit,deryni/cockpit,moraleslazaro/cockpit,arilivigni/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,dperpeet/cockpit,andreasn/cockpit,mvollmer/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,larsu/cockpit,cockpit-project/cockpit,cockpituous/cockpit,arilivigni/cockpit,larsu/cockpit,Scribery/cockpit,garrett/cockpit,mareklibra/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,petervo/cockpit,arilivigni/cockpit,xhad/cockpit,andreasn/cockpit,dperpeet/cockpit,garrett/cockpit,mvollmer/cockpit,mvollmer/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,harishanand95/cockpit,garrett/cockpit,dperpeet/cockpit,stefwalter/cockpit,deryni/cockpit,arilivigni/cockpit,arilivigni/cockpit,mareklibra/cockpit,mareklibra/cockpit,vanloswang/cockpit,andreasn/cockpit,moraleslazaro/cockpit,garrett/cockpit,SotolitoLabs/cockpit,deryni/cockpit,larskarlitski/cockpit,cockpituous/cockpit,larskarlitski/cockpit,cockpituous/cockpit,dperpeet/cockpit,petervo/cockpit,martinpitt/cockpit,Scribery/cockpit,moraleslazaro/cockpit