Skip to content

Commit aaecd9a

Browse files
committed
fix test
1 parent c397e64 commit aaecd9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ const fillAndSubmitForm = async ({
8080
await userEvent.clear(iconField);
8181
await userEvent.type(iconField, icon);
8282

83-
const allowCancelJobsField = screen.getByRole("checkbox");
83+
const allowCancelJobsField = screen.getByRole("checkbox", {
84+
name: "allow_user_cancel_workspace_jobs",
85+
});
8486
// checkbox is checked by default, so it must be clicked to get unchecked
8587
if (!allow_user_cancel_workspace_jobs) {
8688
await userEvent.click(allowCancelJobsField);

0 commit comments

Comments
 (0)