chore(tests): fixing tests having issues with mutation observers

This commit is contained in:
ShaneK
2026-01-07 08:30:56 -08:00
parent a5bd1dd518
commit 553aa65376
6 changed files with 20 additions and 27 deletions

View File

@@ -48,24 +48,6 @@
document.head.appendChild(style);
}
/**
* Zero out safe-area insets in test environments.
* The default 20px --ion-safe-area-top from core.scss is for legacy
* status bar simulation but doesn't represent real browser behavior.
* Tests that need to verify safe-area handling should explicitly set
* these values in their test HTML files.
*/
const safeAreaStyle = document.createElement('style');
safeAreaStyle.innerHTML = `
:root {
--ion-safe-area-top: 0px;
--ion-safe-area-bottom: 0px;
--ion-safe-area-left: 0px;
--ion-safe-area-right: 0px;
}
`;
document.head.appendChild(safeAreaStyle);
/**
* The `palette` param is used to load a specific palette
* for the theme.