From 8ecf050fcb5bb4247256c1f6705b759edf7e73cf Mon Sep 17 00:00:00 2001 From: Xavi Garcia Mena Date: Fri, 30 Oct 2015 15:57:46 +0100 Subject: Integration tests updated --- tests/integration/indicator-sound-test-base.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/integration/indicator-sound-test-base.cpp') diff --git a/tests/integration/indicator-sound-test-base.cpp b/tests/integration/indicator-sound-test-base.cpp index dd5d4b5..5005e2c 100644 --- a/tests/integration/indicator-sound-test-base.cpp +++ b/tests/integration/indicator-sound-test-base.cpp @@ -743,6 +743,7 @@ void IndicatorSoundTestBase::checkPortDevicesLabels(DevicePortType speakerPort, notificationsSpy.clear(); } + notificationsSpy.clear(); // activate the headphones EXPECT_TRUE(activateHeadphones(true)); @@ -759,8 +760,9 @@ void IndicatorSoundTestBase::checkPortDevicesLabels(DevicePortType speakerPort, } else { - WAIT_FOR_SIGNALS(notificationsSpy, 1); - checkVolumeNotification(INITIAL_VOLUME, headphonesString, false, notificationsSpy.at(0)); + WAIT_FOR_SIGNALS(notificationsSpy, 2); + checkNotificationWithNoArgs("GetCapabilities", notificationsSpy.at(0)); + checkVolumeNotification(INITIAL_VOLUME, headphonesString, false, notificationsSpy.at(1)); notificationsSpy.clear(); } @@ -784,8 +786,9 @@ void IndicatorSoundTestBase::checkPortDevicesLabels(DevicePortType speakerPort, // deactivate the headphones EXPECT_TRUE(activateHeadphones(false)); - WAIT_FOR_SIGNALS(notificationsSpy, 1); - checkVolumeNotification(INITIAL_VOLUME, speakerString, false, notificationsSpy.at(0)); + WAIT_FOR_SIGNALS(notificationsSpy, 2); + checkNotificationWithNoArgs("GetCapabilities", notificationsSpy.at(0)); + checkVolumeNotification(INITIAL_VOLUME, speakerString, false, notificationsSpy.at(1)); notificationsSpy.clear(); // check the label in the menu -- cgit v1.2.3