This step definition is used to test whether the specific element does not contain text that matches the specified pattern.
Then (I|we)* should not see text matching "([^"]*)?" in the "([^"]*)?" element
There are many types of text that are searched such as email, phone number, link address path, time and date, uppercase or lowercase words, words with certain letters, and . . . etc.
Example:
Then I should not see text matching "\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])" in the "#date" element
"\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])"
It is a pattern that searches for a text that exists in an element that has a pattern match with the date YYYY-MM-DD format.
Ex. 2023-07-31