@@ -31,7 +31,7 @@ describe("SpendingLimitsForm", () => {
31
31
await userEvent . click ( spendLimitCheckbox ) ;
32
32
expect ( spendLimitCheckbox ) . toBeChecked ( ) ;
33
33
34
- const spendLimitInput = screen . getByLabelText ( "Spend Limit " ) ;
34
+ const spendLimitInput = screen . getByLabelText ( "Disable Threshold " ) ;
35
35
await userEvent . clear ( spendLimitInput ) ;
36
36
await userEvent . type ( spendLimitInput , "0" ) ;
37
37
@@ -72,7 +72,7 @@ describe("SpendingLimitsForm", () => {
72
72
) ;
73
73
74
74
// Find the spend limit input
75
- const spendLimitInput = screen . getByLabelText ( "Spend Limit " ) ;
75
+ const spendLimitInput = screen . getByLabelText ( "Disable Threshold " ) ;
76
76
77
77
// Enter a non-numeric value
78
78
const nonNumericValue = "not a number" ;
@@ -114,7 +114,7 @@ describe("SpendingLimitsForm", () => {
114
114
expect ( warningThresholdCheckbox ) . toBeChecked ( ) ;
115
115
116
116
// Enter two values that don’t match
117
- const spendLimitInput = screen . getByLabelText ( "Spend Limit " ) ;
117
+ const spendLimitInput = screen . getByLabelText ( "Disable Threshold " ) ;
118
118
await userEvent . clear ( spendLimitInput ) ;
119
119
await userEvent . type ( spendLimitInput , "100" ) ;
120
120
@@ -147,7 +147,7 @@ describe("SpendingLimitsForm", () => {
147
147
) ;
148
148
149
149
// Find the spend limit input
150
- const spendLimitInput = screen . getByLabelText ( "Spend Limit " ) ;
150
+ const spendLimitInput = screen . getByLabelText ( "Disable Threshold " ) ;
151
151
152
152
// Enter a value less than the current spending
153
153
await userEvent . type ( spendLimitInput , "99" ) ;
@@ -173,7 +173,7 @@ describe("SpendingLimitsForm", () => {
173
173
/> ,
174
174
) ;
175
175
176
- const spendLimitInput = screen . getByLabelText ( "Spend Limit " ) ;
176
+ const spendLimitInput = screen . getByLabelText ( "Disable Threshold " ) ;
177
177
await userEvent . clear ( spendLimitInput ) ;
178
178
await userEvent . type ( spendLimitInput , "0" ) ;
179
179
await userEvent . click ( document . body ) ;
@@ -230,7 +230,7 @@ describe("SpendingLimitsForm", () => {
230
230
const spendLimitCheckbox = screen . getByLabelText ( "Limit usage spending to" ) ;
231
231
await userEvent . click ( spendLimitCheckbox ) ;
232
232
expect ( spendLimitCheckbox ) . not . toBeChecked ( ) ;
233
- expect ( screen . getByLabelText ( "Spend Limit " ) ) . toBeDisabled ( ) ;
233
+ expect ( screen . getByLabelText ( "Disable Threshold " ) ) . toBeDisabled ( ) ;
234
234
235
235
const warningThresholdCheckbox = screen . getByLabelText (
236
236
"Warn when spending exceeds" ,
0 commit comments