The sit-and-extend knee test is used to diagnose whether sciatica is present when the side knee is pressed downwards for pain.