feat(range): ionChange will only emit from user committed changes (#26089)

This commit is contained in:
Sean Perkins
2022-10-24 16:13:48 -04:00
committed by GitHub
parent 04ed860d21
commit d1fb7b039b
21 changed files with 328 additions and 91 deletions

View File

@ -30,8 +30,7 @@ describe('Form', () => {
toggle: false,
input: '',
input2: 'Default Value',
checkbox: false,
range: 5
checkbox: false
});
});
@ -51,9 +50,6 @@ describe('Form', () => {
// Click confirm button
cy.get('ion-alert .alert-button:not(.alert-button-role-cancel)').click();
testStatus('INVALID');
cy.get('ion-range').invoke('prop', 'value', 40);
testStatus('VALID');
testData({
@ -62,8 +58,7 @@ describe('Form', () => {
toggle: false,
input: 'Some value',
input2: 'Default Value',
checkbox: false,
range: 40
checkbox: false
});
});
@ -75,8 +70,7 @@ describe('Form', () => {
toggle: true,
input: '',
input2: 'Default Value',
checkbox: false,
range: 5
checkbox: false
});
});
@ -88,8 +82,7 @@ describe('Form', () => {
toggle: false,
input: '',
input2: 'Default Value',
checkbox: true,
range: 5
checkbox: true
});
});
@ -109,8 +102,7 @@ describe('Form', () => {
toggle: true,
input: '',
input2: 'Default Value',
checkbox: false,
range: 5
checkbox: false
});
cy.get('ion-checkbox').click();
testData({
@ -119,8 +111,7 @@ describe('Form', () => {
toggle: true,
input: '',
input2: 'Default Value',
checkbox: true,
range: 5
checkbox: true
});
});
});