The current documentation on locator.waitFor mentions that the state has 4 values, but doesn't explain what they are and how they work.
See the playwright documentation on some explanations
This came as part of a question from a user in the community forum.