-
Notifications
You must be signed in to change notification settings - Fork 6
/
AutoFormatTableCommand.feature
96 lines (89 loc) · 2.51 KB
/
AutoFormatTableCommand.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Feature: Automatic table formatting command
Rules:
* Autoformats DataTable
* Autoformats DataTable when typing last pipe
* Autoformats DataTable when typing middle pipe
* Autoformats one-liner DataTable
* Autoformats Examples table
Scenario: Autoformats DataTable when typing last pipe
Given there is a SpecFlow project scope
And the following feature file in the editor
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number| reason |
| 1 | first number |
| 2 |second number {caret}
"""
When I invoke the "Auto Format Table" command by typing "|"
Then the editor should be updated to
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number | reason |
| 1 | first number |
| 2 | second number |
"""
Scenario: Autoformats DataTable when typing middle pipe
Given there is a SpecFlow project scope
And the following feature file in the editor
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number| reason |
| 1 {caret} first number |
| 2 |second number |
"""
When I invoke the "Auto Format Table" command by typing "|"
Then the editor should be updated to
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number | reason |
| 1 | first number |
| 2 | second number |
"""
Scenario: Autoformats one-liner DataTable
Given there is a SpecFlow project scope
And the following feature file in the editor
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number| reason{caret}
"""
When I invoke the "Auto Format Table" command by typing "|"
Then the editor should be updated to
"""
Feature: Addition
Scenario: Add two numbers
Given the following numbers added
| number | reason |
"""
Scenario: Autoformats Examples table
Given there is a SpecFlow project scope
And the following feature file in the editor
"""
Feature: Addition
Scenario Outline: Add two numbers
When I press add
Examples:
| number| reason |
| 1 {caret} first number |
| 2 |second number |
"""
When I invoke the "Auto Format Table" command by typing "|"
Then the editor should be updated to
"""
Feature: Addition
Scenario Outline: Add two numbers
When I press add
Examples:
| number | reason |
| 1 | first number |
| 2 | second number |
"""