diff --git a/modules/order/tests/src/FunctionalJavascript/CustomerProfileTest.php b/modules/order/tests/src/FunctionalJavascript/CustomerProfileTest.php
--- a/modules/order/tests/src/FunctionalJavascript/CustomerProfileTest.php	(revision 6e5ec860cf20109c26108ad77f8268c7b8e96d45)
+++ b/modules/order/tests/src/FunctionalJavascript/CustomerProfileTest.php	(date 1680268244094)
@@ -196,7 +196,7 @@
     $this->getSession()->reload();
     $this->getSession()->getPage()->pressButton('billing_edit');
     $this->assertSession()->assertWaitOnAjaxRequest();
-    $this->assertSession()->pageTextContains('An illegal choice has been detected.');
+    $this->assertSession()->pageTextMatches('/An illegal choice has been detected\.|The submitted value (.*) in the (.*) element is not allowed\./');
     $this->assertSession()->pageTextContains($this->usAddress['postal_code']);
     $this->assertSession()->pageTextNotContains('29617');
     \Drupal::state()->delete('commerce_order_forge_profile_selection');
