mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(tests): replace hex color to satisfy linter
Replace `#eee` with `lightgray` in `tests/visual/moderation.spec.ts` to comply with the project's no-hex-colors linting rule (except for allowed files). This style is injected only for test stability in headless environments. Fixes CI failure in `lint:hex`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
55571c1c0d
commit
e5a49e79ed
1 file changed
+1
-1
@@ -10,7 +10,7 @@ async function waitForFixtureReady(page) {
|
||||
// Inject critical styles to ensure layout works in headless even if external CSS lags
|
||||
await page.addStyleTag({
|
||||
content: `
|
||||
.ratio-16-9 { width: 100% !important; padding-top: 56.25% !important; position: relative !important; background: #eee; display: block !important; }
|
||||
.ratio-16-9 { width: 100% !important; padding-top: 56.25% !important; position: relative !important; background: lightgray; display: block !important; }
|
||||
.card { width: 100% !important; display: block !important; min-width: 200px !important; }
|
||||
.video-card__media { width: 100% !important; display: block !important; }
|
||||
`
|
||||
|
||||
Reference in new issue
Block a user