Skip to content

Commit 4ecf3fd

Browse files
committed
Fix tests.
1 parent fc8a9d9 commit 4ecf3fd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/OrchardCore.Commerce.Tests.UI/Tests/LocalizedProductTests/LocalizedProductBehaviorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ await context.SelectFromBootstrapDropdownReliablyAsync(
5858
await context.ClickReliablyOnAsync(By.CssSelector("form[action='/shoppingcart/AddItem'] button.btn-primary"));
5959
context.ErrorMessageShouldNotExist();
6060
context.Get(By.ClassName("cart-product-name")).Text.Trim().ShouldBe(LocalizedTitle);
61-
context.Get(By.ClassName("shopping-cart-table-unit-price")).Text.Trim().ShouldBe("3 500,00 Ft");
61+
context.Get(By.ClassName("shopping-cart-table-unit-price")).Text.Trim().ShouldBe("3 500 Ft");
6262
},
6363
browser);
6464

test/OrchardCore.Commerce.Tests/ProductAttributeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ public async Task ProductAttributeServiceCanFindAttributesOnProducts()
178178
var product = new ContentItem { ContentType = "Product" };
179179
var productPart1 = new ContentPart();
180180
var boolProductAttribute = new BooleanProductAttributeField();
181+
product.Weld("ProductPart1", productPart1);
181182
productPart1.Weld("foobool", boolProductAttribute);
182183
productPart1.Weld("barbool", new BooleanField());
183-
product.Weld("ProductPart1", productPart1);
184184
var productPart2 = new ContentPart();
185185
var textProductAttribute = new TextProductAttributeField();
186+
product.Weld("ProductPart2", productPart2);
186187
productPart2.Weld("footext", textProductAttribute);
187188
productPart2.Weld("bartext", new TextField());
188-
product.Weld("ProductPart2", productPart2);
189189

190190
var productAttributeFields = (await productAttributeService.GetProductAttributeFieldsAsync(product)).ToArray();
191191

0 commit comments

Comments
 (0)