diff --git a/autotests/integration/activities_test.cpp b/autotests/integration/activities_test.cpp index 76e79fa4e8..4e3c69ed97 100644 --- a/autotests/integration/activities_test.cpp +++ b/autotests/integration/activities_test.cpp @@ -130,6 +130,10 @@ void ActivitiesTest::testSetOnActivitiesValidates() QVERIFY(!Activities::self()->all().contains(QStringLiteral("bar"))); //setting the client to an invalid activities should result in the client being on all activities + client->setOnActivity(QStringLiteral("foo"), true); + QVERIFY(client->isOnAllActivities()); + QVERIFY(!client->activities().contains(QLatin1String("foo"))); + client->setOnActivities(QStringList{QStringLiteral("foo"), QStringLiteral("bar")}); QVERIFY(client->isOnAllActivities()); QVERIFY(!client->activities().contains(QLatin1String("foo")));