My understanding is that I should only use a comma before "but" if it precedes an independent clause.
What if I want a "pause comma" before "but" and it does not precede an independent clause?
Example:
One day, Ted thought he saw another boy dancing, but it was just the reflection of himself.