test(docs-infra): avoid running expensive operations when focusing/skipping tests (#43963)
test(docs-infra): avoid running expensive operations when focusing/skipping tests (#43963)

Previously, the pre-computation of branch version info for the
`deploy-to-firebase` tests would always take place even when the tests
that used that info were skipped. This pre-computation involves network
access and may add a noticeable delay.

This commit refactors the tests to not do the pre-computation if the
corresponding tests are skipped. This allows for a faster iteration
when focusing on a different set of tests.

PR Close #43963

ocombe/angular,JiaLiPassion/angular,ocombe/angular,shairez/angular,manekinekko/angular,shairez/angular,brandonroberts/angular,angular-indonesia/angular,angular/angular,ocombe/angular,manekinekko/angular,manekinekko/angular,angular/angular,gnomeontherun/angular,JiaLiPassion/angular,gnomeontherun/angular,angular/angular,brandonroberts/angular,JiaLiPassion/angular,JiaLiPassion/angular,ocombe/angular,manekinekko/angular,shairez/angular,ocombe/angular,angular/angular,ocombe/angular,gkalpak/angular,shairez/angular,brandonroberts/angular,angular-indonesia/angular,gkalpak/angular,angular-indonesia/angular,angular-indonesia/angular,brandonroberts/angular,brandonroberts/angular,manekinekko/angular,manekinekko/angular,shairez/angular,gkalpak/angular,gnomeontherun/angular,brandonroberts/angular,gnomeontherun/angular,gkalpak/angular