autotests/integration: fix xdg shell test

It made now-invalid assumptions about how the active output is decided
This commit is contained in:
Xaver Hugl 2024-04-22 18:47:33 +02:00
parent 354a71855e
commit 55e5d50074

View file

@ -2873,6 +2873,7 @@ void TestXdgShellWindowRules::testScreenRemember()
// Close and reopen the window. // Close and reopen the window.
destroyTestWindow(); destroyTestWindow();
workspace()->setActiveOutput(outputs.at(0));
createTestWindow(); createTestWindow();
QEXPECT_FAIL("", "Applying a screen rule on a new client fails on Wayland", Continue); QEXPECT_FAIL("", "Applying a screen rule on a new client fails on Wayland", Continue);
@ -2963,6 +2964,7 @@ void TestXdgShellWindowRules::testScreenForceTemporarily()
// Close and reopen the window. // Close and reopen the window.
destroyTestWindow(); destroyTestWindow();
workspace()->setActiveOutput(outputs.at(0));
createTestWindow(); createTestWindow();
// The rule should be discarded now // The rule should be discarded now