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

Added Tests for Editor and Update cypress/fixture/editor.json #12

Closed
manzil-infinity180 opened this issue Jan 21, 2024 · 3 comments
Closed
Labels
bug Something isn't working feature stale UI/UX

Comments

@manzil-infinity180
Copy link

manzil-infinity180 commented Jan 21, 2024

Describe the bug
As we can see clearly from cypress - the quill editor is writing this thing (See - screenshot)
Test for cypress/e2e/component/editor/editor.cy.js (editor)
Curent Behaviour (Match the expectedRichHTML & and html that is in image)
Screenshot 2024-01-21 at 3 34 31 PM

cypress/fixture/editor.json 

{
  "expectedRichTextHTML": "<div><p><strong>bold</strong><br><em>italic</em><br><u>underlined</u></p></div>"
}

But what it is mentioned in the cypress/fixture/editor.json is different from which we will get TIME OUT ERROR(me too getting error).Due to which i am getting assertion error (Like this - assertionError: Timed out retrying after 4000ms:)

** Added Missing Test **
This PR merged for adding new and more tools to editor but we are not handing any test for new tool
feat: Added more tools in the editor #974 (scorelab/Codelabz#974)
so added some test for handling and checking this tools

To Reproduce
We have to change the editor.json folder to this which is same as editor write while testing

{
  "expectedRichTextHTML": "<div><p><strong>bboldb</strong><br><em>italic</em><br><u>uunderlinedu</u></p></div>"
}

Folder Path : /cypress/e2e/components/editor/editor.cy.js

Expected behavior

Screenshot 2024-01-21 at 3 42 07 PM
@github-actions github-actions bot added bug Something isn't working feature UI/UX labels Jan 21, 2024
Copy link

Hello 👋🏻 @manzil-infinity180! Thankyou for creating an issue!

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 22, 2024
Copy link

github-actions bot commented Mar 8, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature stale UI/UX
Projects
None yet
Development

No branches or pull requests

1 participant