When I find textareas by placeholder text:
When I find textareas by placeholder text {string} Copy
When I find textareas by placeholder text {string}
A placeholder is not a good substitute for a label so you should generally use "When I find textarea by label text" instead.
When I find textareas by placeholder text "Text" Copy
When I find textareas by placeholder text "Text"
This precedes steps like "When I type". For example:
When I find textareas by placeholder text "Comments" And I get 1st element And I type "Lorem ipsum" Copy
When I find textareas by placeholder text "Comments" And I get 1st element And I type "Lorem ipsum"
Inspired by Testing Library's ByPlaceholderText.
When I find textareas by placeholder text:
A placeholder is not a good substitute for a label so you should generally use "When I find textarea by label text" instead.