autotests: don't fail if an unrelated window shows up.

Authored by dfaure on Aug 10 2018, 10:07 AM.

Description

autotests: don't fail if an unrelated window shows up.

Summary:
Running anything else in parallel to this test would make it fail,
because windowAdded() would be emitted with an unrelated window.
If we couldn't find our dialog when the signal is emitted,
just keep waiting for the signal to be emitted again.

Test Plan: ctest -j 8 .

Reviewers: hein, drosca, broulik, davidedmundson, jtamate

Reviewed By: jtamate

Subscribers: jtamate, kde-frameworks-devel, Plasma

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D14724

Details