aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test-indicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/test-indicator.cpp')
-rw-r--r--tests/integration/test-indicator.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/integration/test-indicator.cpp b/tests/integration/test-indicator.cpp
index 33e62b5..54c56b5 100644
--- a/tests/integration/test-indicator.cpp
+++ b/tests/integration/test-indicator.cpp
@@ -182,6 +182,7 @@ TEST_F(TestIndicator, PhoneBasicInitialVolume)
).match());
}
+
TEST_F(TestIndicator, PhoneAddMprisPlayer)
{
double INITIAL_VOLUME = 0.0;
@@ -783,7 +784,11 @@ TEST_F(TestIndicator, PhoneNotificationWarningVolume)
int idNotification = getNotificationID(notificationsSpy.at(5));
ASSERT_NE(-1, idNotification);
- qWarning() << "XGM: id Notification: " << idNotification;
+ // check the sync value before cancelling the dialog
+ bool isValid;
+ qlonglong syncValue = getVolumeSyncValue(&isValid);
+ EXPECT_TRUE(isValid);
+ EXPECT_EQ(0, syncValue);
// cancel the dialog
pressNotificationButton(idNotification, "cancel");
@@ -805,6 +810,11 @@ TEST_F(TestIndicator, PhoneNotificationWarningVolume)
)
).match());
+ // verify that the sync value is increased
+ syncValue = getVolumeSyncValue(&isValid);
+ EXPECT_TRUE(isValid);
+ EXPECT_EQ(1, syncValue);
+
// try again...
notificationsSpy.clear();
@@ -900,7 +910,6 @@ TEST_F(TestIndicator, PhoneNotificationWarningVolume)
checkVolumeNotification(1.0, "Headphones", true, notificationsSpy.at(3));
}
-
TEST_F(TestIndicator, PhoneNotificationWarningVolumeAlertMode)
{
double INITIAL_VOLUME = 0.0;