Bug fixing is done through reports, so when a game/update is released, they will get a lot of feedback about what is broken and what not.
The optimal solution would be to test EVERYTHING, that is sadly just not possible. If a game developer would test EVERY scenario, they would be busy for...