They both matter. In the past, separate full scale tests have been done with cabin pressure cycling and with flexing on some new airframes. I'm not sure if this is the case any more given the advances in the science, finite element modelling, and laboratory scale tests. I suspect that fairly large scale tests are still done on composites.