Skip to content

Commit 507dc80

Browse files
committed
chore: Remove disabled check at the start of the test
1 parent 1cfedaf commit 507dc80

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

site/src/pages/TemplateSettingsPage/TemplateSchedulePage/TemplateSchedulePage.test.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ const fillAndSubmitForm = async ({
5454
}: FillAndSubmitConfig) => {
5555
const user = userEvent.setup();
5656

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-
6657
if (default_ttl_ms) {
6758
const defaultTtlField = await screen.findByLabelText(
6859
"Default autostop (hours)",
@@ -102,6 +93,10 @@ const fillAndSubmitForm = async ({
10293
);
10394
}
10495

96+
const submitButton = screen.getByRole("button", {
97+
name: FooterFormLanguage.defaultSubmitLabel,
98+
});
99+
105100
expect(submitButton).not.toBeDisabled();
106101
await user.click(submitButton);
107102

0 commit comments

Comments
 (0)