mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
fix: the map falls back to raster where the vector style cannot load, the tour layer pill fits narrow maps and stands on the side in 3D, the dashboard's widget column scrolls on its own, and the CI checks the watch sync and journey write-up broke
This commit is contained in:
@@ -432,6 +432,16 @@ describe('MDashboard', () => {
|
||||
expect(amount.value).toBe('250');
|
||||
});
|
||||
|
||||
it('FE-MOB-DASH-042: on a landscape tablet the widget column scrolls on its own, within the window', () => {
|
||||
mocks.dash = buildDash();
|
||||
render(<MDashboard />);
|
||||
const column = screen.getAllByRole('textbox', { name: 'From' })[0].closest('[class*="split:sticky"]') as HTMLElement;
|
||||
expect(column).not.toBeNull();
|
||||
expect(column.className).toContain('split:overflow-y-auto');
|
||||
expect(column.className).toContain('split:max-h-[calc(100dvh-var(--m-safe-top,12px)-70px)]');
|
||||
expect(column.className).toContain('split:overscroll-contain');
|
||||
});
|
||||
|
||||
it('FE-MOB-DASH-027: a malformed date renders a dash instead of crashing', () => {
|
||||
mocks.dash = buildDash({ gridTrips: [buildTrip({ id: 14, start_date: 'not-a-date', end_date: iso(3) })] });
|
||||
render(<MDashboard />);
|
||||
|
||||
Reference in New Issue
Block a user