-
Notifications
You must be signed in to change notification settings - Fork 160
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
INT-3297: Refactor tests to use BDD style #516
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
danoaky-tiny
requested review from
ArvinJ-H,
tiny-james,
ltrouton,
MitchC1999 and
tiny-ben-tran
April 10, 2024 04:28
danoaky-tiny
requested review from
spocke,
vpyshnenko,
shanmen-tiny,
TheSpyder and
lorenzo-pomili
and removed request for
a team
April 10, 2024 04:28
danoaky-tiny
force-pushed
the
feature/INT-3297
branch
from
April 10, 2024 04:37
c18d064
to
25e9cb7
Compare
This reverts commit 25e9cb7.
spocke
reviewed
Apr 11, 2024
tiny-james
approved these changes
Apr 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I like the disposable based cleanup. Make sure you fix that absolute import.
ltrouton
approved these changes
Apr 17, 2024
…inyMCE Also removed `deleteTinyMCE` from Loader.tsx and moved it to LoadTinyTest.ts
MitchC1999
approved these changes
Apr 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira: INT-3297
Changes:
Loader.tsx
now exports arender
function that returns aReactEditorContext
. This implementsDisposable
, which simplifies creating safe tests that cleanup editor instances and associated React DOM nodes.Loader.tsx
also exports awithVersion
function that passes aRenderWithVersion
function to a callback. This function is similar to the exportedrender
function but with some props omited:using
keyword.