Closed sanioooook closed 1 year ago
Can you tell me why you need an id
field?
e2e tests in project are oriented to ids
14.5.0 has added id field, please have a try.
it seems to me that I have not fully expressed my thought.
can you also add the use of this id in the cells? Like [id]="col.id"
for all <span>
in cell.component.html
In tests, I need to get an element using a selector($('css-selector')
), take the text from the element and compare it with what I expect
it seems to me that I have not fully expressed my thought. can you also add the use of this id in the cells? Like
[id]="col.id"
for all<span>
in cell.component.html
The id attribute is unique, it shouldn't be added to multiple elements.
In tests, I need to get an element using a selector(
$('css-selector')
), take the text from the element and compare it with what I expect
You can use custom column's class to get the element.
it seems to me that I have not fully expressed my thought. can you also add the use of this id in the cells? Like
[id]="col.id"
for all<span>
in cell.component.htmlThe id attribute is unique, it shouldn't be added to multiple elements.
yes, I know, that's why I suggested id: (rowData, index) => string
so that the id would be unique
Can you add
id
field inMtxGridColumn
? Likeid: (rowData, index) => string
or simpleid: string