No.

That test, text(), returns true if the <figcaption> has a nonzero length text child.  OIOW, text() will not return any text that is within embedded nodes.