mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
describe('Textarea', () => {
|
|
beforeEach(() => cy.visit('/textarea'));
|
|
|
|
it('should become valid', () => {
|
|
cy.get('#status').should('have.text', 'INVALID');
|
|
|
|
cy.get('ion-textarea').type('hello');
|
|
|
|
cy.get('#status').should('have.text', 'VALID');
|
|
});
|
|
|
|
it('should update the form control value when typing', () => {
|
|
cy.get('#value').contains(`"textarea": ""`);
|
|
cy.get('ion-textarea').type('hello');
|
|
|
|
cy.get('#value').contains(`"textarea": "hello"`);
|
|
});
|
|
});
|