File tree 1 file changed +4
-9
lines changed
site/src/pages/TemplateSettingsPage/TemplateSchedulePage
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,6 @@ 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
-
66
57
if ( default_ttl_ms ) {
67
58
const defaultTtlField = await screen . findByLabelText (
68
59
"Default autostop (hours)" ,
@@ -102,6 +93,10 @@ const fillAndSubmitForm = async ({
102
93
) ;
103
94
}
104
95
96
+ const submitButton = screen . getByRole ( "button" , {
97
+ name : FooterFormLanguage . defaultSubmitLabel ,
98
+ } ) ;
99
+
105
100
expect ( submitButton ) . not . toBeDisabled ( ) ;
106
101
await user . click ( submitButton ) ;
107
102
You can’t perform that action at this time.
0 commit comments