For the sake of clarity it's worth checking that libreoffice and webbrowser-app are not focused before the final compare() calls. Afterall, the only reason you launched a second app after them was to get them unfocused. A check (and/or comment) would make your intent clear.
Thanks for splitting it into smaller tests.
For the sake of clarity it's worth checking that libreoffice and webbrowser-app are not focused before the final compare() calls. Afterall, the only reason you launched a second app after them was to get them unfocused. A check (and/or comment) would make your intent clear.