mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
fix(journey): the feed's entries are gone under the header pills, not half seen between them
Scrolled up, a day's head showed at a third of its strength between the back button and the segment, because the feed's mask let content through from 22px below the safe area while the pills reach 38px. It is now transparent down to 40px and whole from 60px, where the first day's head starts.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// FE-MOB-JDET-001 to FE-MOB-JDET-049
|
||||
// FE-MOB-JDET-001 to FE-MOB-JDET-050
|
||||
import { describe, it, expect, beforeEach, afterEach, onTestFinished, vi } from 'vitest';
|
||||
import { setSizeClass } from '../../../helpers/sizeClass';
|
||||
import { render, screen, fireEvent, waitFor, act } from '../../../helpers/render';
|
||||
@@ -816,6 +816,15 @@ describe('MJourneyDetail', () => {
|
||||
expect(screen.getByRole('button', { name: /Kyoto/ })).toHaveAttribute('aria-current', 'true');
|
||||
});
|
||||
|
||||
it('FE-MOB-JDET-050: the feed hides what scrolls under the header pills down to their lower edge', () => {
|
||||
setSizeClass('split');
|
||||
setup();
|
||||
const feed = screen.getByRole('button', { name: /Kyoto/ }).closest('.overflow-y-auto') as HTMLElement;
|
||||
// Transparent through the 38px pills below the safe area, whole before the first day's head at +60px.
|
||||
expect(feed.style.maskImage).toMatch(/transparent calc\(var\(--m-safe-top, 12px\) \+ 40px\)/);
|
||||
expect(feed.style.maskImage).toMatch(/#000 calc\(var\(--m-safe-top, 12px\) \+ 60px\)/);
|
||||
});
|
||||
|
||||
it('FE-MOB-JDET-048: the gallery takes the page, feed or not', () => {
|
||||
setSizeClass('split');
|
||||
setup({ view: 'gallery' });
|
||||
|
||||
Reference in New Issue
Block a user