mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
describe('Searchbar', () => {
|
|
beforeEach(() => cy.visit('/searchbar'));
|
|
|
|
it('should become valid', () => {
|
|
cy.get('#status').should('have.text', 'INVALID');
|
|
|
|
cy.get('ion-searchbar').type('hello');
|
|
|
|
cy.get('#status').should('have.text', 'VALID');
|
|
});
|
|
|
|
it('should update the form control value when typing', () => {
|
|
cy.get('#value').contains(`"searchbar": ""`);
|
|
cy.get('ion-searchbar').type('hello');
|
|
|
|
cy.get('#value').contains(`"searchbar": "hello"`);
|
|
});
|
|
}); |