Acceptance testing how to catch warning logs

In terraform acceptance testing, how can I catch below warning logs ? I know the ExpectError could catch error logs, but I cannot find a way to catch warning logs.

Plan: 1 to add, 0 to change, 1 to destroy.
Warning: resource will be recreated with test_pki_key_cert.test_me_com_int,│ on test.terraform.tf.json line 50, in resource.test_pki_key_cert.test_com_int:│ 50: