Covid testing

Just wondering will We have to do a covid test when I go into labor when we get to the hospital? I’m due 23rd July. Or will they only test of me or partner have symptoms? Anyone know? Thanks.