[gnome-logs/wip/test: 32/33] Add behave tests



commit bd43c999aaf9a0ecdd977654c4a85591106b0719
Author: Rashi Aswani <aswanirashi19 gmail com>
Date:   Mon Aug 17 22:11:16 2015 +0530

    Add behave tests

 Makefile.am            |    4 ----
 tests/general.feature  |   18 +++++++++---------
 tests/steps/general.py |    8 +-------
 3 files changed, 10 insertions(+), 20 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 4150d6e..ebbe3f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -233,10 +233,6 @@ nodist_tests_gnome_logs_behave_test_SOURCES = \
         src/gl-enums.c \
         src/gl-resource.c
 
-enum_data = \
-        src/gl-enums.c \
-        src/gl-enums.h
-
 tests_gnome_logs_behave_test_enum_headers = \
         $(srcdir)/src/gl-categorylist.h \
         $(srcdir)/src/gl-eventtoolbar.h \
diff --git a/tests/general.feature b/tests/general.feature
index e5709b7..5fda19c 100644
--- a/tests/general.feature
+++ b/tests/general.feature
@@ -1,18 +1,18 @@
 Feature: General
 
 @start_logs
-#  Scenario: Search
-#    * Make sure gnome-logs-behave-test is running
-#    * Click on Search
-#    Then search is focused and selection toolbar buttons are sensitive
+  Scenario: Search
+    * Make sure gnome-logs-behave-test is running
+    * Click on Search
+    Then search is focused and selection toolbar buttons are sensitive
 
   Scenario: Search with text
     * Make sure gnome-logs-behave-test is running
     * Type search text
     Then assert test
 
-#  Scenario: Go Back
-#    * Make sure gnome-logs-behave-test is running
-#    * Select the log listing
-#    * Press the back button
-#    Then return to the main window
+  Scenario: Go Back
+    * Make sure gnome-logs-behave-test is running
+    * Select the log listing
+    * Press the back button
+    Then return to the main window
diff --git a/tests/steps/general.py b/tests/steps/general.py
index d25b2b0..b46afb8 100644
--- a/tests/steps/general.py
+++ b/tests/steps/general.py
@@ -32,14 +32,8 @@ def type_search_text(context):
 
 @step(u'assert test')
 def assert_test(context):
-    assert context.app.child('This is a test').sensitive
     assert context.app.child('Search').focused
-    assert context.app.child('Important').sensitive
-    assert context.app.child('All').sensitive
-    assert context.app.child('Applications').sensitive
-    assert context.app.child('System').sensitive
-    assert context.app.child('Security').sensitive
-    assert context.app.child('Hardware').sensitive
+    assert context.app.child('This is a test').sensitive
 
 @step(u'Go Back')
 def go_back(context):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]