diff --git a/addons/addon-web-links/test/WebLinksAddon.test.ts b/addons/addon-web-links/test/WebLinksAddon.test.ts index 8682c53359..5763044fce 100644 --- a/addons/addon-web-links/test/WebLinksAddon.test.ts +++ b/addons/addon-web-links/test/WebLinksAddon.test.ts @@ -34,7 +34,10 @@ test.describe('WebLinksAddon', () => { test.beforeEach(async () => { await ctx.page.evaluate(` - window.term.reset() + window.term.reset(); + `); + await timeout(50); + await ctx.page.evaluate(` window._linkaddon?.dispose(); window._linkaddon = new WebLinksAddon(); window.term.loadAddon(window._linkaddon);