From 9ff945c56f6606b7dab1203a8d3ba05fd22d56b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Fri, 26 Aug 2016 13:45:21 +0200 Subject: [PATCH] add tests for qute://settings --- tests/end2end/features/set.feature | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/end2end/features/set.feature b/tests/end2end/features/set.feature index 6611b7ca0..bf352f178 100644 --- a/tests/end2end/features/set.feature +++ b/tests/end2end/features/set.feature @@ -63,6 +63,31 @@ Feature: Setting settings. Then the following tabs should be open: - qute:settings (active) + @qtwebengine_todo: qute:settings is not implemented yet + Scenario: Focusing input fields in qute://settings and entering valid value + When I open qute://settings + # scroll to the right - the table does not fit in the default screen + And I run :scroll-perc -x 100 + And I hint with args "inputs" and follow a + And I press the key "" + And I press the key "true" + And I press the key "" + # an explicit Tab to unfocus the input field seems to stabilize the tests + And I press the key "" + And I run :set general ignore-case? + Then "general ignore-case = true" should be logged + + @qtwebengine_todo: qute:settings is not implemented yet + Scenario: Focusing input fields in qute://settings and entering invalid value + When I open qute://settings + # scroll to the right - the table does not fit in the default screen + And I run :scroll-perc -x 100 + And I hint with args "inputs" and follow a + And I press the key "" + And I press the key "foo" + And I press the key "" + Then "invalid value 'foo' *" should be logged + Scenario: Empty option with ? (issue 1109) When I run :set general ? Then the error "set: The following arguments are required: value" should be shown