Compare the encoded values without the need to save screenshots:

before = base64.b64encode(note_field.screenshot()).decode()
note_field.fill(str(uuid.uuid4()))
note_field_after = base64.b64encode(note_field.screenshot()).decode()
assert before != deal_note_field_after