Skip to content

Commit bde810b

Browse files
committed
Fix tests expecting a string that was modified
1 parent db42ced commit bde810b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

client/dashboard/me/notifications-extras/test/index.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,9 @@ describe( 'NotificationsExtras', () => {
249249
expect( screen.getByText( 'Reminders about your posts from past years.' ) ).toBeVisible();
250250
expect( screen.getByLabelText( 'Achievements' ) ).toBeVisible();
251251
expect(
252-
screen.getByText(
253-
'Receive notifications when you unlock new achievements. This setting overrides site-level settings.'
254-
)
252+
screen.getByText( /Receive notifications when you unlock new achievements\./ )
255253
).toBeVisible();
254+
expect( screen.getByRole( 'link', { name: 'site-level settings' } ) ).toBeVisible();
256255
} );
257256

258257
it( 'saves the On this day setting when toggled', async () => {

0 commit comments

Comments
 (0)