Fix test warnings

Merged Samuel GAIST requested to merge update_tests into master

This merge request fixes test warnings as well as ensure that the QT_QPA_PLATFORM environment variable is set to run the tests.

This will make the tests running with the offscreen plugin in all cases.

Edited by Samuel GAIST

Merge request reports