|
@@ -274,6 +274,19 @@ class CommonCatalogControllerTest extends TestCase
|
|
|
->assertSeeText('Калькуляция');
|
|
->assertSeeText('Калькуляция');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function test_technical_description_price_uses_a_non_breaking_space_instead_of_an_html_entity(): void
|
|
|
|
|
+ {
|
|
|
|
|
+ $item = CommonCatalogItem::factory()->create([
|
|
|
|
|
+ 'project_price' => 434800,
|
|
|
|
|
+ ]);
|
|
|
|
|
+
|
|
|
|
|
+ $this->actingAs($this->admin)
|
|
|
|
|
+ ->get(route('common-catalog.show', $item))
|
|
|
|
|
+ ->assertOk()
|
|
|
|
|
+ ->assertSee("434\u{00A0}800.00₽", false)
|
|
|
|
|
+ ->assertDontSee(' ', false);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function test_admin_can_edit_technical_description_fields(): void
|
|
public function test_admin_can_edit_technical_description_fields(): void
|
|
|
{
|
|
{
|
|
|
$item = CommonCatalogItem::factory()->create();
|
|
$item = CommonCatalogItem::factory()->create();
|