Debian Codegraph @

issue.features/issue0109.feature

raw
1 @issue
2 Feature: Issue #109: Insists that implemented tests are not implemented
3
4 . STATUS: Resolved, not a behave problem.
5 .
6 . Following feature file marks implemented step "when I submit the following data"
7 . as not implemented.
8
9
10 Scenario:
11 Given a new working directory
12 And a file named "features/syndrome109.feature" with:
13 """
14 @wip
15 Feature: Manage accounts from the admin interface
16
17 Scenario: Login successfully via login form
18 Given I navigate to "/admin/"
19 when I submit the following data
20 | name | value |
21 | username | [email protected] |
22 | password | pass |
23 then I see the word "Welcome"
24
25 Scenario: Create user via admin user creation form
26 Given I navigate to "/admin/users/user/add/"
27 when I submit the following data
28 | name | value |
29 | email | [email protected] |
30 | password1 | pass |
31 | password2 | pass |
32 then I see the word "successfully"
33 """
34 And a file named "features/steps/steps.py" with:
35 """
36 from behave import given, when, then
37
38 @given(u'I navigate to "{url}"')
39 def step_navigate_to_url(context, url):
40 pass
41
42 @when(u'I submit the following data')
43 def step_submit_data(context):
44 pass
45
46 @then(u'I see the word "{word}"')
47 def step_see_word(context, word):
48 pass
49 """
50 When I run "behave -w features/syndrome109.feature"
51 Then it should pass with:
52 """
53 1 feature passed, 0 failed, 0 skipped
54 2 scenarios passed, 0 failed, 0 skipped
55 6 steps passed, 0 failed, 0 skipped, 0 undefined
56 """
57 And the command output should not contain:
58 """
59 You can implement step definitions for undefined steps with these snippets:
60 """