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

chore: Add debug util to fill lexical editor programmatically #16022

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Oct 17, 2023

Description

Add debug util so that QA can add text in the input from automation

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

@@ -173,7 +173,7 @@ export const RichTextEditor = ({
openStateRef={mentionsOpen}
/>

<OnChangePlugin onChange={saveDraft} />
<OnChangePlugin onChange={saveDraft} ignoreSelectionChange />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a nice little optimization to avoid updating the stored value everytime the selection changes

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #16022 (a45475d) into dev (2a7480c) will decrease coverage by 0.01%.
Report is 2 commits behind head on dev.
The diff coverage is 0.00%.

❗ Current head a45475d differs from pull request most recent head 3829db1. Consider uploading reports for the commit 3829db1 to get more accurate results

@@            Coverage Diff             @@
##              dev   #16022      +/-   ##
==========================================
- Coverage   44.78%   44.77%   -0.01%     
==========================================
  Files         701      701              
  Lines       23300    23306       +6     
  Branches     5291     5291              
==========================================
+ Hits        10435    10436       +1     
- Misses      11504    11510       +6     
+ Partials     1361     1360       -1     

@atomrc atomrc merged commit 41be059 into dev Oct 17, 2023
10 checks passed
@atomrc atomrc deleted the debug/input-text branch October 17, 2023 15:44
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.

3 participants