CSRF test to new code

* moved the test
* updated dashboard code
* added `execute_script` to `pytest_selenium`