Add a line to the list of the open tab (order lines, invoice lines) and fill its cells from a table: the first column names the column of the list, the second gives the value. The "Add a line" link of the list is named by its text, for example "Add a product".
Examples
When I add a line with "Add a product":
When we add a line with "Add a line":
And I add an line with "Add a product":
When I add a line with "Add a section":
And we add an line with "Add a line":
Pattern
When(/^(I |we )*add an? line with "([^"]*)":$/, …)
Part of @webship-js/odoo-steps (github.com/webship/odoo-steps), a step pack for Webship-js 2.0.x.