GlobalShortcutsTest: Fix testNonLatinLayout

Have it switch back from the Russian layout, otherwise the rest of tests
are run with this one and fail as they produce weird shortcuts.
This commit is contained in:
Aleix Pol 2021-05-11 03:52:11 +02:00
parent 282e0d1c4d
commit a977ba3311

View file

@ -76,6 +76,9 @@ void GlobalShortcutsTest::init()
QVERIFY(Test::setupWaylandConnection());
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(640, 512));
auto xkb = input()->keyboard()->xkb();
xkb->switchToLayout(0);
}
void GlobalShortcutsTest::cleanup()