mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
fix(ci): the second round of gates after the places changes
- index.css stays at its size: the map canvas colour moves to its own stylesheet. - The rating badge on map markers takes its amber and white from a class in ratingBadge.css instead of inline literals; the theme entry drops with it. - Strict mode: the identity a link joins is resolved without a widened union, the description of an entry's origins is string or undefined, and the map search rows are typed. - knip: PLACE_NAME_ATTR is module private, the linked-by enum names the values the service writes, and the unlink contract is its own described schema rather than a second name for the use schema. - The duplicates hook test reads toasts through a module mock instead of the window hook; react-hooks/refs is lowered to the count the run measured. - Tests follow the rename to Places and the list icon on an edit.
This commit is contained in:
@@ -39,7 +39,7 @@ describe('MNavRail', () => {
|
||||
seedAddons(['vacay', 'journey', 'atlas', 'collections']);
|
||||
render(<MNavRail />, { initialEntries: ['/dashboard'] });
|
||||
|
||||
for (const name of ['My Trips', 'Vacay', 'Journey', 'Atlas', 'Collections', 'Settings']) {
|
||||
for (const name of ['My Trips', 'Vacay', 'Journey', 'Atlas', 'Places', 'Settings']) {
|
||||
expect(within(rail()).getByRole('button', { name })).toBeInTheDocument();
|
||||
}
|
||||
expect(within(rail()).queryByRole('button', { name: 'More' })).not.toBeInTheDocument();
|
||||
|
||||
@@ -153,6 +153,7 @@ describe('MCollEditSheet', () => {
|
||||
name: 'Hamburg',
|
||||
color: '#38BDF8',
|
||||
description: null,
|
||||
icon: 'Bookmark',
|
||||
links: [{ label: 'Guide', url: 'https://hamburg.de' }],
|
||||
})
|
||||
// An edit must not re-navigate the way a create does.
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('MMobileNavCustomizer', () => {
|
||||
render(<MMobileNavCustomizer value={{ bar: [], more: [] }} onChange={vi.fn()} />);
|
||||
|
||||
expect(rowLabels('In the bar')).toEqual(['Vacay', 'Journey']);
|
||||
expect(rowLabels('Under “More”')).toEqual(['Atlas', 'Collections']);
|
||||
expect(rowLabels('Under “More”')).toEqual(['Atlas', 'Places']);
|
||||
});
|
||||
|
||||
it('FE-MOB-SETNAVC-002: Dashboard is listed pinned and has no reorder buttons', () => {
|
||||
|
||||
Reference in New Issue
Block a user