File tree 1 file changed +30
-1
lines changed
fixtures/dom/src/components/fixtures/number-inputs
1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
1
const React = window . React ;
2
2
3
- import Fixture from '../../Fixture' ;
4
3
import FixtureSet from '../../FixtureSet' ;
5
4
import TestCase from '../../TestCase' ;
6
5
import NumberTestCase from './NumberTestCase' ;
@@ -129,6 +128,36 @@ const NumberInputs = React.createClass({
129
128
</ TestCase . ExpectedResult >
130
129
< NumberTestCase />
131
130
</ TestCase >
131
+
132
+ < TestCase
133
+ title = "Appending -"
134
+ description = "Adding '-' to the end of '3' maintains the trailing dash"
135
+ >
136
+ < TestCase . Steps >
137
+ < li > Type "3"</ li >
138
+ < li > Type '-'</ li >
139
+ </ TestCase . Steps >
140
+
141
+ < TestCase . ExpectedResult >
142
+ The field should read "3-", not "3"
143
+ </ TestCase . ExpectedResult >
144
+ < NumberTestCase />
145
+ </ TestCase >
146
+
147
+ < TestCase
148
+ title = "Negative numbers"
149
+ description = "Typing minus when inserting a negative number should work"
150
+ >
151
+ < TestCase . Steps >
152
+ < li > Type "-"</ li >
153
+ < li > Type '3'</ li >
154
+ </ TestCase . Steps >
155
+
156
+ < TestCase . ExpectedResult >
157
+ The field should read "-3".
158
+ </ TestCase . ExpectedResult >
159
+ < NumberTestCase />
160
+ </ TestCase >
132
161
</ FixtureSet >
133
162
) ;
134
163
} ,
You can’t perform that action at this time.
0 commit comments