You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signal-based inputs were introduced in Angular 17.1 and are not supported in Cypress. Issue #29264 addresses issues with types in componentProperties. This issue expands on that, as that Cypress also does not understand signal input aliasing.
It is possible to rename an input signal using the alias config option. See this example:
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
(uncaught exception)Error: NG0950: Input is required but no value is available yet. Find more at https://angular.io/errors/NG0950
Other
No response
The text was updated successfully, but these errors were encountered:
Current behavior
Signal-based inputs were introduced in Angular 17.1 and are not supported in Cypress. Issue #29264 addresses issues with types in
componentProperties
. This issue expands on that, as that Cypress also does not understand signal input aliasing.It is possible to rename an input signal using the
alias
config option. See this example:The Component now exposes a
superTitle
property instead of atitle
, of typestring
.In Cypress component testing, the
componentProperties
incorrectly assumes atitle
property instead ofsuperTitle
:Note: The type of the title property is also wrong, it should be a
string
instead of aninputSignal<string>
. But this is addressed in issue #29264.Desired behavior
Cypress should understand signal inputs with an alias and reflect this in a correct
componentProperties
type.Test code to reproduce
component-test.cy.ts:
Cypress Version
13.7.2
Node version
20.10.0
Operating System
Win 11
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: