For comparatively trivial things like what to do when we get too much traffic on servers, engineers do “game day” testing.
How does anyone expect pilots to run through these crazy scenarios and perform flawlessly unless they have done it in a simulator many times?