test(angular): add timeout to avoid flaky value accessor test (#25522)

This commit is contained in:
Sean Perkins
2022-06-24 14:43:08 -04:00
committed by GitHub
parent f5eec137ba
commit b3c05289bb
2 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,9 @@ describe('Form', () => {
cy.get('ion-input.required').invoke('prop', 'value', 'Some value');
testStatus('INVALID');
// TODO: FW-1160 - Remove when v7 is released
cy.wait(300);
cy.get('ion-select').invoke('prop', 'value', 'nes');
testStatus('INVALID');

View File

@ -150,6 +150,7 @@ export class Select implements ComponentInterface {
@Watch('value')
valueChanged() {
this.emitStyle();
// TODO: FW-1160 - Remove the `didInit` property when ionChange behavior is changed in v7.
if (this.didInit) {
this.ionChange.emit({
value: this.value,