From 478e9c604c2408e056de08c8fa0ba0d9318de04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Mon, 6 Nov 2023 11:51:13 +0100 Subject: [PATCH] Fix missing constant from unit test. --- .../Tests/CheckoutTests/BehaviorOrderTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/OrchardCore.Commerce.Tests.UI/Tests/CheckoutTests/BehaviorOrderTests.cs b/test/OrchardCore.Commerce.Tests.UI/Tests/CheckoutTests/BehaviorOrderTests.cs index 46ae95f41..0e3212309 100644 --- a/test/OrchardCore.Commerce.Tests.UI/Tests/CheckoutTests/BehaviorOrderTests.cs +++ b/test/OrchardCore.Commerce.Tests.UI/Tests/CheckoutTests/BehaviorOrderTests.cs @@ -52,11 +52,11 @@ await context.FillCheckoutFormAsync(new OrderPart await context.ClickReliablyOnAsync(By.ClassName("pay-button-dummy")); void MatchText(string css, string expected) => - context.Get(By.CssSelector(css)).Text.Trim().ShouldBe(expected); + context.Get(By.CssSelector(css)).Text.Trim().RegexReplace(@"\s+", " ").ShouldBe(expected); MatchText("h4.text-success", "Thank you for your purchase!"); - const string address = ""; + const string address = "BLACK MESA EAST 1. CITY 17 AF"; MatchText(".field-name-order-part-billing-address dd", address); MatchText(".field-name-order-part-shipping-address dd", address);