Cypress - Component Testing
What will happen if you run this Cypress test?
import { mount } from '@cypress/react';
function Label() {
return <label>Name:</label>;
}
describe('Label test', () => {
it('checks label text', () => {
mount(<Label />);
cy.get('label').should('contain.text', 'Name');
});
});