mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
feat(textarea): ionChange will only emit from user committed changes (#25953)
This commit is contained in:
18
angular/test/base/e2e/src/textarea.spec.ts
Normal file
18
angular/test/base/e2e/src/textarea.spec.ts
Normal file
@ -0,0 +1,18 @@
|
||||
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"`);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user