chutney-testing / chutney-legacy

An opinionated test application to help you practice Specification by Example
https://www.chutney-testing.com/
Apache License 2.0
18 stars 19 forks source link

dataset => using tabulation key doesnt work properly, 2nd input takes value from 1st input #1106

Open DelaunayAlex opened 1 year ago

DelaunayAlex commented 1 year ago

The problem is located : in file 'forms-data-gris.component.ts' in function 'updateHeader' on line 'this.headers[col] = newHeader;'.

The problem happens only in the header section. You can reproduce by adding several columns, focus on the first one and type something and then press TAB. The content of the first header is duplicated in the second column. But the list of headers is not modified, and the content of the second header is not sent to the server. Impossible to get the current value of the input in the html in the F12 panel The ids of the headers are good, the probleme does not seem to be in the ts file.

What i've tried :

KarimGl commented 1 year ago

Update 17/08/2023: The problem occures:

The bug can be reproduced here

Solution: Avoid to update iteration string variable inside ngFor. So use FormArray instead of String[].