File tree 1 file changed +10
-3
lines changed
site/src/pages/TemplateSettingsPage/TemplateSchedulePage
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ const fillAndSubmitForm = async ({
54
54
} : FillAndSubmitConfig ) => {
55
55
const user = userEvent . setup ( ) ;
56
56
57
+ const submitButton = screen . getByRole ( "button" , {
58
+ name : FooterFormLanguage . defaultSubmitLabel ,
59
+ } ) ;
60
+
61
+ // This should be removed once we start removing disabled states from the UI;
62
+ // not worried about this getting forgotten, because it will trigger an error
63
+ // at some point once that migration starts
64
+ expect ( submitButton ) . toBeDisabled ( ) ;
65
+
57
66
if ( default_ttl_ms ) {
58
67
const defaultTtlField = await screen . findByLabelText (
59
68
"Default autostop (hours)" ,
@@ -93,9 +102,7 @@ const fillAndSubmitForm = async ({
93
102
) ;
94
103
}
95
104
96
- const submitButton = await screen . findByText (
97
- FooterFormLanguage . defaultSubmitLabel ,
98
- ) ;
105
+ expect ( submitButton ) . not . toBeDisabled ( ) ;
99
106
await user . click ( submitButton ) ;
100
107
101
108
// User needs to confirm dormancy and auto-deletion fields.
You can’t perform that action at this time.
0 commit comments