Skip to content

Test: finish enzyme removal #1809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

samuelreichert
Copy link
Contributor

Pull request type

No code changes (changes to documentation, CI, metadata, etc.)

Refactoring (e.g. file rename, variable rename, etc.)

est related change (New E2E test, test automation, etc.)


Finishing the removal of enzyme from all pluggable widgets

@samuelreichert samuelreichert force-pushed the test/finish-enzyme-migration branch from 0eb51f8 to aa5ad01 Compare August 6, 2025 07:49
Comment on lines +2 to +7
// Removed unused Alert, AlertProps imports
import { actionValue, EditableValueBuilder } from "@mendix/widget-plugin-test-utils";
import { mount, ReactWrapper } from "enzyme";
import { render, fireEvent } from "@testing-library/react";
import { createElement } from "react";

import SwitchComponent, { SwitchProps } from "../components/Switch";
// Removed unused SwitchComponent, SwitchProps imports
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless comments

it("handles keydown events", async () => {
// NOTE: jsdom does not reliably trigger keyboard events for custom sliders.
// fireEvent is used for clarity, but may not trigger the slider's internal logic in jsdom.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be done with userEvent module which seems to emulate is better than fireEvent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants