diff --git a/components/offline/__tests__/offline-settings.test.tsx b/components/offline/__tests__/offline-settings.test.tsx index e7f87f5af..1e7ee9c2b 100644 --- a/components/offline/__tests__/offline-settings.test.tsx +++ b/components/offline/__tests__/offline-settings.test.tsx @@ -174,3 +174,13 @@ describe('the offline banner', () => { expect(screen.queryByTestId('offline-banner')).toBeNull(); }); }); + +// settings-p2-18: in a browser the page said "use disk encryption" twice, +// once in the warning and again in the key note below it. +describe('Settings > Offline in a browser', () => { + it('warns about the browser profile once', async () => { + await act(async () => { render(); }); + expect(screen.getByTestId('offline-warning').textContent).toBe('warning'); + expect(screen.queryByText('browser_note')).toBeNull(); + }); +}); diff --git a/components/offline/offline-settings.tsx b/components/offline/offline-settings.tsx index e68c57ac7..a96f5d15a 100644 --- a/components/offline/offline-settings.tsx +++ b/components/offline/offline-settings.tsx @@ -68,7 +68,8 @@ export function OfflineSettings() {