Fix card list UI layout shifts (jumps) on load
This commit fixes layout shifts that occur on card list part of the page when the page is initially loaded. - Resolve issue where card list starts with minimal width, leading to jumps in UI until correct width is calculated on medium and big screens. - Dispose of existing `ResizeObserver` properly before creating a new one. This prevents leaks and incorrect width calculations if `containerElement` changes. - Throttle resize events to minimize width/height calculation changes, enhancing performance and reducing the chances for layout shifts. Supporting CI/CD improvements: - Enable artifact upload in CI/CD even if E2E tests fail. - Distinguish uploaded artifacts by operating system for clarity.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { waitForHeaderBrandTitle } from './shared/ApplicationLoad';
|
||||
|
||||
describe('application is initialized as expected', () => {
|
||||
it('loads title as expected', () => {
|
||||
// act
|
||||
cy.visit('/');
|
||||
// assert
|
||||
cy.contains('h1', 'privacy.sexy');
|
||||
waitForHeaderBrandTitle();
|
||||
});
|
||||
it('there are no console.error output', () => {
|
||||
// act
|
||||
|
||||
Reference in New Issue
Block a user