When I fill in the "Page Title" record field with "News"

Fill in a field of the record form by its label. Works for text inputs, text areas and the rich text editor (CKEditor 5). The field must be on the open tab.

Examples

When I fill in the "Page Title" record field with "News"
When I fill in the "Header" record field with "Welcome"
When we fill in the "Subheader" record field with "Latest updates"
And I fill in the "Text" record field with "A paragraph of text."
When fill in the "Page Title" record field with ""

Pattern

When(/^(I |we )*fill in the "([^"]*)?" record field with "([^"]*)?"$/, …)

Part of @webship-js/typo3-steps (github.com/webship/typo3-steps), a step pack for Webship-js 2.0.x.