When is a pregnant woman tested for group B Streptococcus?

Questions

When is а pregnаnt wоmаn tested fоr grоup B Streptococcus?