diff --git a/chrome/test/data/webui/side_panel/read_anything/links_toggled_integration_test.ts b/chrome/test/data/webui/side_panel/read_anything/links_toggled_integration_test.ts index 4571ecf388607..254d7cbe3f66b 100644 --- a/chrome/test/data/webui/side_panel/read_anything/links_toggled_integration_test.ts +++ b/chrome/test/data/webui/side_panel/read_anything/links_toggled_integration_test.ts @@ -126,6 +126,7 @@ suite('LinksToggledIntegration', () => { emitEvent(app, ToolbarEvent.NEXT_GRANULARITY); await microtasksFinished(); } + return microtasksFinished(); }); test('container has links again', () => { @@ -135,8 +136,9 @@ suite('LinksToggledIntegration', () => { }); suite('after speech pauses', () => { - setup(() => { + setup(async () => { app.playSpeech(); + await microtasksFinished(); app.stopSpeech(PauseActionSource.BUTTON_CLICK); return microtasksFinished(); }); @@ -184,9 +186,11 @@ suite('LinksToggledIntegration', () => { }); suite('after speech pauses', () => { - setup(() => { + setup(async () => { app.playSpeech(); + await microtasksFinished(); app.stopSpeech(PauseActionSource.BUTTON_CLICK); + return microtasksFinished(); }); test('container does not have links', () => {