Advertisement
VladNitu

chat-miri-integration-idea

Jun 7th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. describe('TextBox', () => {
  2. it('highlights the text correctly', () => {
  3. // Visit the page where the TextBox component is rendered
  4. cy.visit('/your-page-with-textbox')
  5.  
  6. // Enter some text in the TextBox component
  7. cy.get('.custom-textarea')
  8. .type('This is a test text to highlight')
  9.  
  10. // Verify that the highlighted text is displayed
  11. cy.get('[data-testid="Highlighter"]')
  12. .should('contain', 'test')
  13. .and('have.css', 'background-color', 'rgba(46, 131, 126, 0.7)')
  14. })
  15. })
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement