Merge pull request #5180 from Tyriar/5179

Forward integration test exit code to running proc
This commit is contained in:
Daniel Imms
2024-10-04 07:51:17 -07:00
committed by GitHub
3 changed files with 8 additions and 3 deletions
@@ -34,7 +34,10 @@ test.describe('WebLinksAddon', () => {
test.beforeEach(async () => { test.beforeEach(async () => {
await ctx.page.evaluate(` await ctx.page.evaluate(`
window.term.reset() window.term.reset();
`);
await timeout(50);
await ctx.page.evaluate(`
window._linkaddon?.dispose(); window._linkaddon?.dispose();
window._linkaddon = new WebLinksAddon(); window._linkaddon = new WebLinksAddon();
window.term.loadAddon(window._linkaddon); window.term.loadAddon(window._linkaddon);
+2
View File
@@ -62,6 +62,8 @@ async function run() {
console.error(run.error); console.error(run.error);
process.exit(run.status ?? -1); process.exit(run.status ?? -1);
} }
process.exit(run.status);
} }
} }
run(); run();
+2 -2
View File
@@ -690,7 +690,7 @@ test.describe('API Integration Tests', () => {
window.term = new Terminal(); window.term = new Terminal();
window.term.dispose(); window.term.dispose();
`); `);
strictEqual(await ctx.page.evaluate(`window.term._core._isDisposed`), true); strictEqual(await ctx.page.evaluate(`window.term._core._store._isDisposed`), true);
}); });
test('dispose (opened)', async () => { test('dispose (opened)', async () => {
@@ -702,7 +702,7 @@ test.describe('API Integration Tests', () => {
} catch {} } catch {}
} }
`); `);
strictEqual(await ctx.page.evaluate(`window.term._core._isDisposed`), true); strictEqual(await ctx.page.evaluate(`window.term._core._store._isDisposed`), true);
}); });
test('render when visible after hidden', async () => { test('render when visible after hidden', async () => {