From 6136dd5a751b22cf88609840a89a40ffbc0b9145 Mon Sep 17 00:00:00 2001 From: Porus Patell Date: Fri, 15 Aug 2014 12:51:43 -0700 Subject: Adding Spinach tests for 'search issues by description field' feature --- features/project/issues/issues.feature | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'features/project') diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature index b2e6f1f9324..85c6ab4bc2a 100644 --- a/features/project/issues/issues.feature +++ b/features/project/issues/issues.feature @@ -63,6 +63,36 @@ Feature: Project Issues Then I should see "Release 0.3" in issues And I should not see "Release 0.4" in issues + @javascript + Scenario: Test to search project issues when the entered search string exactly matches an existing issue description + Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" + And I fill in issue search with "Description for issue1" + Then I should see "Bugfix1" in issues + And I should not see "Release 0.4" in issues + And I should not see "Release 0.3" in issues + And I should not see "Tweet control" in issues + + @javascript + Scenario: Test to search project issues when the entered search string partially matches an existing issue description + Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" + And project "Shop" has issue "Feature1" with description: "Feature submitted for issue1" + And I fill in issue search with "issue1" + Then I should see "Feature1" in issues + Then I should see "Bugfix1" in issues + And I should not see "Release 0.4" in issues + And I should not see "Release 0.3" in issues + And I should not see "Tweet control" in issues + + @javascript + Scenario: Test to search project when the entered search string matches no existing issue description + Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" + And I fill in issue search with "Rock and roll" + Then I should not see "Bugfix1" in issues + And I should not see "Release 0.4" in issues + And I should not see "Release 0.3" in issues + And I should not see "Tweet control" in issues + + # Markdown Scenario: Headers inside the description should have ids generated for them. -- cgit v1.2.1 From eeebf7dae61676f79a482930174d37e3afb79dd6 Mon Sep 17 00:00:00 2001 From: Porus Patell Date: Tue, 19 Aug 2014 18:43:02 -0700 Subject: Fixing requested changes for 'search issues by description' tests --- features/project/issues/issues.feature | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'features/project') diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature index 85c6ab4bc2a..e3001318c23 100644 --- a/features/project/issues/issues.feature +++ b/features/project/issues/issues.feature @@ -64,30 +64,30 @@ Feature: Project Issues And I should not see "Release 0.4" in issues @javascript - Scenario: Test to search project issues when the entered search string exactly matches an existing issue description - Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" - And I fill in issue search with "Description for issue1" - Then I should see "Bugfix1" in issues + Scenario: Search issues when search string exactly matches issue description + Given project 'Shop' has issue 'Bugfix1' with description: 'Description for issue1' + And I fill in issue search with 'Description for issue1' + Then I should see 'Bugfix1' in issues And I should not see "Release 0.4" in issues And I should not see "Release 0.3" in issues And I should not see "Tweet control" in issues @javascript - Scenario: Test to search project issues when the entered search string partially matches an existing issue description - Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" - And project "Shop" has issue "Feature1" with description: "Feature submitted for issue1" - And I fill in issue search with "issue1" - Then I should see "Feature1" in issues - Then I should see "Bugfix1" in issues + Scenario: Search issues when search string partially matches issue description + Given project 'Shop' has issue 'Bugfix1' with description: 'Description for issue1' + And project 'Shop' has issue 'Feature1' with description: 'Feature submitted for issue1' + And I fill in issue search with 'issue1' + Then I should see 'Feature1' in issues + Then I should see 'Bugfix1' in issues And I should not see "Release 0.4" in issues And I should not see "Release 0.3" in issues And I should not see "Tweet control" in issues @javascript - Scenario: Test to search project when the entered search string matches no existing issue description - Given project "Shop" has issue "Bugfix1" with description: "Description for issue1" - And I fill in issue search with "Rock and roll" - Then I should not see "Bugfix1" in issues + Scenario: Search issues when search string matches no issue description + Given project 'Shop' has issue 'Bugfix1' with description: 'Description for issue1' + And I fill in issue search with 'Rock and roll' + Then I should not see 'Bugfix1' in issues And I should not see "Release 0.4" in issues And I should not see "Release 0.3" in issues And I should not see "Tweet control" in issues -- cgit v1.2.1