[gnome-control-center/wip/benzea/ci: 25/28] tests/network: Check that Bluetooth section is not shown
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/ci: 25/28] tests/network: Check that Bluetooth section is not shown
- Date: Mon, 28 May 2018 22:15:43 +0000 (UTC)
commit 354f31f23f092e0f803e9c3857ac03db881322ec
Author: Benjamin Berg <bberg redhat com>
Date: Thu May 24 18:42:58 2018 +0200
tests/network: Check that Bluetooth section is not shown
This simply ensure the section does not randomly show up after maknig
unrelated changes.
tests/network/test-network-panel.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index ba4f9ebd1..f696e6515 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -184,6 +184,7 @@ test_second_device_add_remove (NetworkPanelFixture *fixture,
{
NMDevice *device;
const gchar *device_path;
+ GtkWidget *bt_header;
test_device_add (fixture, user_data);
@@ -198,9 +199,14 @@ test_second_device_add_remove (NetworkPanelFixture *fixture,
nmtst_remove_device (fixture->sinfo, fixture->client, device);
g_debug("Second device removed again\n");
+ /* eth1000 should be labeled "Wired" again */
g_assert_nonnull (gtk_test_find_label (fixture->shell, "Wired"));
g_assert_null (gtk_test_find_label (fixture->shell, "Ethernet (eth1000)"));
g_assert_null (gtk_test_find_label (fixture->shell, "Ethernet (eth1001)"));
+
+ /* Some more checks for unrelated UI not showing up randomly */
+ bt_header = gtk_test_find_label(fixture->shell, "Bluetooth");
+ g_assert_false (bt_header && gtk_widget_is_visible(bt_header));
}
/*****************************************************************************/
@@ -322,7 +328,7 @@ test_connection_multi_add_activate (NetworkPanelFixture *fixture,
gconstpointer user_data)
{
NMConnection *conn;
- GtkWidget *sw;
+ GtkWidget *sw, *bt_header;
g_autoptr(GError) error = NULL;
/* Add a single connection (just chainging up to other test). */
@@ -353,6 +359,10 @@ test_connection_multi_add_activate (NetworkPanelFixture *fixture,
/* Hardware address is shown at this point */
g_assert_nonnull (gtk_test_find_label (fixture->shell, "52:54:00:ab:db:23"));
+
+ /* Some more checks for unrelated UI not showing up randomly */
+ bt_header = gtk_test_find_label(fixture->shell, "Bluetooth");
+ g_assert_false (bt_header && gtk_widget_is_visible(bt_header));
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]