Skip to content

Commit

Permalink
Merge pull request #5180 from Tyriar/5179
Browse files Browse the repository at this point in the history
Forward integration test exit code to running proc
  • Loading branch information
Tyriar authored Oct 4, 2024
2 parents 9186c72 + 5623ba6 commit a5fc111
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion addons/addon-web-links/test/WebLinksAddon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions bin/test_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ async function run() {
console.error(run.error);
process.exit(run.status ?? -1);
}

process.exit(run.status);
}
}
run();
4 changes: 2 additions & 2 deletions test/playwright/Terminal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ test.describe('API Integration Tests', () => {
window.term = new Terminal();
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 () => {
Expand All @@ -702,7 +702,7 @@ test.describe('API Integration Tests', () => {
} 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 () => {
Expand Down

0 comments on commit a5fc111

Please sign in to comment.