complete story 12.6
This commit is contained in:
@@ -240,28 +240,28 @@ describe('RTL Accessibility Support', function () {
|
||||
});
|
||||
|
||||
describe('WCAG Color Contrast', function () {
|
||||
test('primary color (Charcoal) is defined in theme', function () {
|
||||
test('primary color (Dark Forest Green) is defined in theme', function () {
|
||||
$cssContent = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($cssContent)->toContain('--color-primary: #4A4A42');
|
||||
expect($cssContent)->toContain('--color-primary: #2D3624');
|
||||
});
|
||||
|
||||
test('accent color (Warm Gray) is defined in theme', function () {
|
||||
test('CTA color (Warm Gold) is defined in theme', function () {
|
||||
$cssContent = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($cssContent)->toContain('--color-accent: #C9C4BA');
|
||||
expect($cssContent)->toContain('--color-cta: #A68966');
|
||||
});
|
||||
|
||||
test('background color (Off-White) is defined', function () {
|
||||
test('background color (Warm Cream) is defined', function () {
|
||||
$cssContent = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($cssContent)->toContain('--color-background: #E8E4DC');
|
||||
expect($cssContent)->toContain('--color-background: #F4F1EA');
|
||||
});
|
||||
|
||||
test('text color (Deep Black) is defined', function () {
|
||||
test('text color (Forest Green) is defined', function () {
|
||||
$cssContent = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($cssContent)->toContain('--color-text: #1A1A1A');
|
||||
expect($cssContent)->toContain('--color-text: #2D322A');
|
||||
});
|
||||
|
||||
test('backward-compatible color aliases exist', function () {
|
||||
@@ -269,8 +269,8 @@ describe('WCAG Color Contrast', function () {
|
||||
|
||||
// Legacy color names should be aliased to new colors
|
||||
expect($cssContent)->toContain('--color-navy: var(--color-primary)');
|
||||
expect($cssContent)->toContain('--color-gold: var(--color-accent)');
|
||||
expect($cssContent)->toContain('--color-gold: var(--color-cta)');
|
||||
expect($cssContent)->toContain('--color-cream: var(--color-background)');
|
||||
expect($cssContent)->toContain('--color-charcoal: var(--color-text)');
|
||||
expect($cssContent)->toContain('--color-charcoal: var(--color-primary)');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user