Skip to content

Commit c66b8ad

Browse files
committed
revert test
1 parent ac06fc9 commit c66b8ad

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

packages/plugin-image-button-response/src/index.spec.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -159,34 +159,6 @@ describe("image-button-response", () => {
159159
expect(btns[i].hasAttribute("disabled")).toBe(false);
160160
}
161161
});
162-
163-
test("buttons should be disabled and re-enabled with enable_button_after parameter", async () => {
164-
const { displayElement } = await startTimeline([
165-
{
166-
type: imageButtonResponse,
167-
stimulus: "../media/blue.png",
168-
choices: ["Choice A", "Choice B"],
169-
enable_button_after: 1000,
170-
render_on_canvas: false,
171-
},
172-
]);
173-
174-
const buttons = displayElement.querySelectorAll("button");
175-
176-
// All buttons should be disabled initially
177-
buttons.forEach((button) => {
178-
expect(button.hasAttribute("disabled")).toBe(true);
179-
expect(button.getAttribute("disabled")).toBe("disabled");
180-
});
181-
182-
// Advance time by 1000ms
183-
jest.advanceTimersByTime(1000);
184-
185-
// All buttons should be enabled after the delay
186-
buttons.forEach((button) => {
187-
expect(button.hasAttribute("disabled")).toBe(false);
188-
});
189-
});
190162
});
191163

192164
describe("image-button-response simulation", () => {

0 commit comments

Comments
 (0)