Ree porting existing tests lp1377158

This task is still in progress (in the sense that it still does not have all our old selenium tests ported) but I propose to merge it to master because it enables us to test the ux2 removal with selenium.

No code changes, safe to merge.

The changes under seleniumtests/ can be ignored, it is a temporary area I use in the following process of migrating the existing selenium tests.