Skip to content

Commit 7c2eec7

Browse files
committed
unskipping
1 parent 3d55bcb commit 7c2eec7

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

src/visualBuilder/__test__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe(
168168
}
169169
);
170170

171-
test.skip("should add overlay to DOM when clicked", async () => {
171+
test("should add overlay to DOM when clicked", async () => {
172172
const h1Tag = document.createElement("h1");
173173
h1Tag.textContent = INLINE_EDITABLE_FIELD_VALUE;
174174
h1Tag.setAttribute(

src/visualBuilder/components/__test__/fieldLabelWrapper.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const PARENT_PATHS = [
155155
`${pathPrefix}.parentPath3`,
156156
];
157157

158-
describe.skip("FieldLabelWrapperComponent", () => {
158+
describe("FieldLabelWrapperComponent", () => {
159159
beforeEach(() => {
160160
vi.mocked(isFieldDisabled).mockReturnValue({
161161
isDisabled: false,

src/visualBuilder/components/__test__/fieldToolbar.test.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ vi.mock("../../utils/isFieldDisabled", () => ({
6565
}));
6666

6767
vi.mock("../FieldRevert/FieldRevertComponent", async (importOriginal) => {
68-
const actual = await importOriginal<typeof import("../FieldRevert/FieldRevertComponent")>();
69-
68+
const actual =
69+
await importOriginal<
70+
typeof import("../FieldRevert/FieldRevertComponent")
71+
>();
72+
7073
return {
7174
...actual,
7275
getFieldVariantStatus: vi.fn().mockResolvedValue({
@@ -129,7 +132,7 @@ describe("FieldToolbarComponent", () => {
129132
vi.clearAllMocks();
130133
});
131134

132-
test.skip("renders toolbar buttons correctly", async () => {
135+
test("renders toolbar buttons correctly", async () => {
133136
const { getByTestId } = await asyncRender(
134137
<FieldToolbarComponent
135138
eventDetails={mockEventDetails}
@@ -153,7 +156,7 @@ describe("FieldToolbarComponent", () => {
153156
expect(deleteButton).toBeInTheDocument();
154157
});
155158

156-
test.skip("calls handleMoveInstance with 'previous' when move left button is clicked", async () => {
159+
test("calls handleMoveInstance with 'previous' when move left button is clicked", async () => {
157160
const { getByTestId } = await asyncRender(
158161
<FieldToolbarComponent
159162
eventDetails={mockEventDetails}
@@ -173,7 +176,7 @@ describe("FieldToolbarComponent", () => {
173176
);
174177
});
175178

176-
test.skip("calls handleMoveInstance with 'next' when move right button is clicked", async () => {
179+
test("calls handleMoveInstance with 'next' when move right button is clicked", async () => {
177180
const { getByTestId } = await asyncRender(
178181
<FieldToolbarComponent
179182
eventDetails={mockEventDetails}
@@ -193,7 +196,7 @@ describe("FieldToolbarComponent", () => {
193196
);
194197
});
195198

196-
test.skip("calls handleDeleteInstance when delete button is clicked", async () => {
199+
test("calls handleDeleteInstance when delete button is clicked", async () => {
197200
const { getByTestId } = await asyncRender(
198201
<FieldToolbarComponent
199202
eventDetails={mockEventDetails}
@@ -211,7 +214,7 @@ describe("FieldToolbarComponent", () => {
211214
mockMultipleFieldMetadata
212215
);
213216
});
214-
test.skip("display variant icon instead of dropdown", async () => {
217+
test("display variant icon instead of dropdown", async () => {
215218
// Create a fresh copy with variant set to avoid mutation issues
216219
const variantEventDetails = {
217220
...mockEventDetails,
@@ -250,7 +253,7 @@ describe("FieldToolbarComponent", () => {
250253
);
251254
});
252255

253-
test.skip("'replace button' is hidden for parent wrapper of multiple file field", async () => {
256+
test("'replace button' is hidden for parent wrapper of multiple file field", async () => {
254257
const parentWrapperMetadata: CslpData = {
255258
...mockMultipleFieldMetadata,
256259
fieldPathWithIndex: "files",
@@ -277,7 +280,7 @@ describe("FieldToolbarComponent", () => {
277280
expect(replaceButton).not.toBeInTheDocument();
278281
});
279282

280-
test.skip("'replace button' is visible for individual field in multiple file field", async () => {
283+
test("'replace button' is visible for individual field in multiple file field", async () => {
281284
const individualFieldMetadata: CslpData = {
282285
...mockMultipleFieldMetadata,
283286
fieldPathWithIndex: "files",
@@ -305,7 +308,7 @@ describe("FieldToolbarComponent", () => {
305308
});
306309
});
307310

308-
test.skip("passes disabled state correctly to child components when field is disabled", async () => {
311+
test("passes disabled state correctly to child components when field is disabled", async () => {
309312
// Mock isFieldDisabled to return disabled state
310313
vi.mocked(isFieldDisabled).mockReturnValue({
311314
isDisabled: true,

src/visualBuilder/utils/__test__/multipleElementAddButton.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ describe("removeAddInstanceButtons", () => {
563563
visualBuilderContainer = document.createElement("div");
564564
visualBuilderContainer.classList.add("visual-builder__container");
565565
document.body.appendChild(visualBuilderContainer);
566-
566+
567567
// Set longer timeout for CI environment where Preact rendering is slower
568568
if (process.env.CI) {
569569
vi.setConfig({ testTimeout: 60000, hookTimeout: 60000 });
@@ -712,7 +712,7 @@ describe("removeAddInstanceButtons", () => {
712712
expect(buttons.length).toBe(0);
713713
});
714714

715-
test.skip("should not remove all buttons if forceRemoveAll is false", () => {
715+
test("should not remove all buttons if forceRemoveAll is false", () => {
716716
for (let i = 0; i < 5; i++) {
717717
const button = generateAddInstanceButton({
718718
fieldSchema: singleLineFieldSchema,

0 commit comments

Comments
 (0)