Skip to content
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

Fix Table Edit plugin tests #2675

Merged
merged 5 commits into from
May 30, 2024
Merged

Conversation

Andres-CT98
Copy link
Contributor

@Andres-CT98 Andres-CT98 commented May 30, 2024

Revamped tests for Table Edit Plugin to not use mouse events and reorganised some tests.

The following changes were made for testing:

  • Made onMouseMove from TableEditor public
  • Exported the onDragStart and onDragging functions of CellResizer and TableResizer
  • Exported the TableInsertHandler class

Also renamed the Context and Initvalue interfaces for CellResizer and TableResizer.

@Andres-CT98 Andres-CT98 marked this pull request as ready for review May 30, 2024 18:49
}
return !!inserter ? 'found' : 'not found';
//Act
div.click();
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Not something we must fix but want to bring up. We can also consider not use something like "element.click()" but instead we directly call the click handler function so we don't need to rely on the browser's event routing.

@Andres-CT98 Andres-CT98 merged commit 8cb3b61 into master May 30, 2024
7 checks passed
@Andres-CT98 Andres-CT98 deleted the u/acampostams/fix-table-plugin-tests branch May 30, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants