Skip to content

Commit 01fe466

Browse files
committed
🧪
1 parent 17d0dc2 commit 01fe466

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const fillAndSubmitForm = async ({
8282
await userEvent.type(iconField, icon);
8383

8484
const allowCancelJobsField = screen.getByRole("checkbox", {
85-
name: "Allow users to cancel in-progress workspace jobs. Depending on your template, canceling builds may leave workspaces in an unhealthy state. This option isn't recommended for most use cases.",
85+
name: /allow users to cancel in-progress workspace jobs/i,
8686
});
8787
// checkbox is checked by default, so it must be clicked to get unchecked
8888
if (!allow_user_cancel_workspace_jobs) {
@@ -123,8 +123,6 @@ describe("TemplateSettingsPage", () => {
123123
"Nam quis nulla. Integer malesuada. In in enim a arcu imperdiet malesuada. Sed vel lectus. Donec odio urna, tempus molestie, port a",
124124
};
125125
const validate = () => getValidationSchema().validateSync(values);
126-
expect(validate).toThrowError(
127-
"Please enter a description that is less than or equal to 128 characters.",
128-
);
126+
expect(validate).toThrowError();
129127
});
130128
});

site/src/utils/formUtils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe("form util functions", () => {
168168
});
169169

170170
it("allows a 32-letter name", () => {
171-
const input = "a".repeat(33);
171+
const input = "a".repeat(32);
172172
const validate = () => nameSchema.validateSync(input);
173173
expect(validate).not.toThrow();
174174
});

0 commit comments

Comments
 (0)