diff --git a/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js b/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js index e7d303f9b..5d47d7ed6 100644 --- a/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js +++ b/special-pages/pages/new-tab/app/update-notification/components/UpdateNotification.js @@ -53,7 +53,17 @@ export function WithNotes({ notes, version }) {
diff --git a/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js b/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js index b5349c522..a7a15d0a8 100644 --- a/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js +++ b/special-pages/pages/new-tab/app/update-notification/integration-tests/update-notification.spec.js @@ -27,7 +27,9 @@ test.describe('newtab update notifications', () => { await page.getByText("Browser Updated to version 1.91. See what's new in this release.").waitFor(); await page.getByRole('link', { name: "what's new" }).click(); - await page.getByText('Bug fixes and improvements').waitFor(); + // this test was updated to add 'exact: true' which would fail if the bullet was not stripped + await page.getByText('Bug fixes and improvements', { exact: true }).waitFor(); + await page.getByText('Optimized performance for faster load times', { exact: true }).waitFor(); await page.getByRole('button', { name: 'Dismiss' }).click(); await ntp.mocks.waitForCallCount({ method: 'updateNotification_dismiss', count: 1 }); }); diff --git a/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js b/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js index 1a1f8d84d..12aa45894 100644 --- a/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js +++ b/special-pages/pages/new-tab/app/update-notification/mocks/update-notification.data.js @@ -10,7 +10,11 @@ export const updateNotificationExamples = { }, populated: { content: { - notes: ['Bug fixes and improvements'], + // prettier-ignore + notes: [ + '• Bug fixes and improvements', + 'Optimized performance for faster load times' + ], version: '1.91', }, },