fix(mobile): split the new phone sheets and cards below the lint limits, follow the tests to the new rows

This commit is contained in:
Maurice
2026-10-22 21:43:15 +02:00
parent 49afee161d
commit 8e420cc1f1
14 changed files with 644 additions and 514 deletions
@@ -282,7 +282,8 @@ describe('MAdminAddonManager', () => {
expect(screen.getByRole('switch', { name: 'Immich' })).toHaveAttribute('aria-checked', 'true');
// Journey + three providers, and providers are not shown as top-level rows.
expect(screen.getAllByRole('switch')).toHaveLength(4);
expect(screen.queryByText('Global')).toBeInTheDocument();
// The band and the addon's type badge both say Global.
expect(screen.getAllByText('Global')).toHaveLength(2);
});
it('FE-MOB-AADD-015: toggling a provider persists it and rolls back on failure', async () => {
@@ -419,7 +420,8 @@ describe('MAdminAddonManager', () => {
expect(screen.getByRole('switch', { name: 'Nextcloud' })).toHaveAttribute('aria-checked', 'true');
// Documents plus two providers, and neither provider carries a type badge of its own.
expect(screen.getAllByRole('switch')).toHaveLength(3);
expect(screen.getAllByText('Trip')).toHaveLength(1);
// The band and the addon's type badge.
expect(screen.getAllByText('Trip')).toHaveLength(2);
});
it('FE-MOB-AADD-029: the shelf stays hidden while Documents is off', async () => {
@@ -383,7 +383,7 @@ describe('MPlacesBrowser', () => {
expect(list).not.toHaveBeenCalled()
fireEvent.click(screen.getByRole('tab', { name: /^Tours$/i }))
expect(screen.getByRole('option', { name: /Ridge walk/ })).toBeInTheDocument()
expect(screen.getByRole('button', { name: /Ridge walk/ })).toBeInTheDocument()
expect(screen.queryByText('Louvre')).not.toBeInTheDocument()
expect(screen.queryByRole('button', { name: 'mobileTrip.importPlaces' })).not.toBeInTheDocument()
expect(screen.queryByRole('button', { name: 'common.add' })).not.toBeInTheDocument()