Mat Chip Test Harness: Support editing chips using the test harness #26419
Labels
area: material/chips
area: material/testing
feature
This issue represents a new feature or feature request rather than a bug or bug fix
G
This is is related to a Google internal issue
Feature Description
matChipInputFor
allows editing input values after a chip has been created (e.g. https://material.angular.io/components/chips/examples#chips-input), however, none of the relevant test harnesses support performing an edit action (e.g. https://material.angular.io/components/chips/api#MatChipRowHarness). There appears to be aisEditing()
method, but no apparent way to use the test harness to get the chip row into an editing state (and no way to actually perform the edit even if you do manage to start editing viaconst host = await chipRow.host(); await host.sendKeys(TestKey.ENTER)
).Use Case
Editing chips is finicky and non-trivial to simulate in test code. Without this feature, components that support chip input editing either have to:
The text was updated successfully, but these errors were encountered: