From b3c05289bba10920649e0314ee4801c16113e16c Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Fri, 24 Jun 2022 14:43:08 -0400 Subject: [PATCH] test(angular): add timeout to avoid flaky value accessor test (#25522) --- angular/test/test-app/e2e/src/form.spec.ts | 3 +++ core/src/components/select/select.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/angular/test/test-app/e2e/src/form.spec.ts b/angular/test/test-app/e2e/src/form.spec.ts index cc3fddbd54e..165ae68b103 100644 --- a/angular/test/test-app/e2e/src/form.spec.ts +++ b/angular/test/test-app/e2e/src/form.spec.ts @@ -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'); diff --git a/core/src/components/select/select.tsx b/core/src/components/select/select.tsx index bf8b148e87a..54906739099 100644 --- a/core/src/components/select/select.tsx +++ b/core/src/components/select/select.tsx @@ -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,