feat: differentiate between header and footer colors

This commit is contained in:
2026-07-01 15:37:46 -03:00
parent 52b422c1ca
commit 3285015841
12 changed files with 123 additions and 33 deletions

View File

@@ -40,7 +40,6 @@ class AttributeControllerTest extends TestCase
$response
->assertCreated()
->assertJsonPath('data.tenant_codigo', 'acme')
->assertJsonPath('data.codigo', 'color')
->assertJsonPath('data.type', 'select')
->assertJsonPath('data.options.0.value', 'red')
@@ -123,7 +122,8 @@ class AttributeControllerTest extends TestCase
'secondary_color' => '#222222',
'danger_color' => '#333333',
'success_color' => '#28a745',
'header_footer_bg_color' => '#444444',
'header_bg_color' => '#444444',
'footer_bg_color' => '#444444',
'header_logo_id' => $headerAttachment->id,
'footer_logo_id' => $footerAttachment->id,
]);

View File

@@ -807,7 +807,8 @@ class ProductControllerTest extends TestCase
'secondary_color' => '#222222',
'danger_color' => '#333333',
'success_color' => '#28a745',
'header_footer_bg_color' => '#444444',
'header_bg_color' => '#444444',
'footer_bg_color' => '#444444',
'header_logo_id' => $headerAttachment->id,
'footer_logo_id' => $footerAttachment->id,
]);

View File

@@ -42,7 +42,8 @@ class ProductVariantAttachmentTest extends TestCase
'secondary_color' => '#ffffff',
'danger_color' => '#ffffff',
'success_color' => '#ffffff',
'header_footer_bg_color' => '#ffffff',
'header_bg_color' => '#ffffff',
'footer_bg_color' => '#ffffff',
'header_logo_id' => $headerAttachment->id,
'footer_logo_id' => $footerAttachment->id,
]);
@@ -119,7 +120,8 @@ class ProductVariantAttachmentTest extends TestCase
'primary_color' => '#ffffff',
'secondary_color' => '#ffffff',
'danger_color' => '#ffffff',
'header_footer_bg_color' => '#ffffff',
'header_bg_color' => '#ffffff',
'footer_bg_color' => '#ffffff',
'header_logo_id' => $headerAttachment->id,
'footer_logo_id' => $footerAttachment->id,
]);