The exception
NoMEthodError: undefined method 'includes?' for "":String
Is due to strings, in this case the value returned by $browser.label.text
do not have an includes?
method.
The method you actually want is include?
(no plural):
assert($browser.label.text.include?("This field is required"))