Looks like element interactions inside foreach table row is not working as expected, elements are not found and write method is not writting
On create the following step
* Create following task
| fiels | value |
|-------|----------------|
| name | test task name |
| type | urgent |
and parsing the table
step("Create following task <table>", async (table) => {
await click($('.add-task'));
table.rows.forEach( async row => {
switch(row.cells[0]) {
case 'name':
await write(row.cells[1], into(inputField({placeholder:"Type here"}, toRightOf('Name of the task'))));
case 'type':
await click($('.input-text', toRightOf('Type of task')));
await write(row.cells[1]);
}
click('Create');
});
The write methods are not writting nothing, even if I put waitfor or waitforstart, but they work if I run them in separate steps outside the loop,