Merge pull request #5180 from Tyriar/5179
Forward integration test exit code to running proc
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user