File tree 2 files changed +6
-5
lines changed
site/src/pages/TemplateSettingsPage/TemplateSchedulePage
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,6 @@ export const TemplateScheduleForm: FC<TemplateScheduleForm> = ({
340
340
inputProps = { { min : 0 , step : "any" } }
341
341
label = "Time until cleanup (days)"
342
342
type = "number"
343
- aria-label = "Failure Cleanup"
344
343
/>
345
344
</ FormFields >
346
345
</ FormSection >
@@ -374,7 +373,6 @@ export const TemplateScheduleForm: FC<TemplateScheduleForm> = ({
374
373
inputProps = { { min : 0 , step : "any" } }
375
374
label = "Time until cleanup (days)"
376
375
type = "number"
377
- aria-label = "Inactivity Cleanup"
378
376
/>
379
377
</ FormFields >
380
378
</ FormSection >
@@ -406,7 +404,6 @@ export const TemplateScheduleForm: FC<TemplateScheduleForm> = ({
406
404
inputProps = { { min : 0 , step : "any" } }
407
405
label = "Time until cleanup (days)"
408
406
type = "number"
409
- aria-label = "Locked Cleanup"
410
407
/>
411
408
</ FormFields >
412
409
</ FormSection >
Original file line number Diff line number Diff line change @@ -63,19 +63,23 @@ const fillAndSubmitForm = async ({
63
63
await user . type ( failureTtlField , failure_ttl_ms . toString ( ) )
64
64
65
65
const inactivityTtlField = screen . getByRole ( "checkbox" , {
66
- name : / I n a c t i v i t y C l e a n u p / i,
66
+ name : / I n a c t i v i t y T T L / i,
67
67
} )
68
68
await user . type ( inactivityTtlField , inactivity_ttl_ms . toString ( ) )
69
69
70
70
const lockedTtlField = screen . getByRole ( "checkbox" , {
71
- name : / L o c k e d C l e a n u p / i,
71
+ name : / L o c k e d T T L / i,
72
72
} )
73
73
await user . type ( lockedTtlField , locked_ttl_ms . toString ( ) )
74
74
75
75
const submitButton = await screen . findByText (
76
76
FooterFormLanguage . defaultSubmitLabel ,
77
77
)
78
78
await user . click ( submitButton )
79
+
80
+ // User needs to confirm inactivity and locked ttl
81
+ const confirmButton = await screen . findByTestId ( "confirm-button" )
82
+ await user . click ( confirmButton )
79
83
}
80
84
81
85
describe ( "TemplateSchedulePage" , ( ) => {
You can’t perform that action at this time.
0 commit comments