Skip to content

Commit

Permalink
Fix missing constant from unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Nov 6, 2023
1 parent 264e0e6 commit 478e9c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 478e9c6

Please sign in to comment.