Two testing-related fixes

This commit is contained in:
Per Bothner
2023-09-07 09:49:37 -07:00
parent 930e5c4280
commit 9963c58511
2 changed files with 3 additions and 3 deletions
@@ -5,7 +5,7 @@
import { assert } from 'chai';
import { openTerminal, launchBrowser } from '../../../out-test/api/TestUtils';
import { Browser, Page } from 'playwright';
import { Browser, Page } from '@playwright/test';
const APP = 'http://127.0.0.1:3001/test';
+2 -2
View File
@@ -258,9 +258,9 @@ test.describe('InputHandler Integration Tests', () => {
// repeat on fullwidth chars
await ctx.page.evaluate(`
window.term.reset();
window.term.write('¥\x1b[10b');
window.term.write('¥\x1b[8b');
`);
await pollFor(ctx.page, () => getLinesAsArray(1), ['¥¥¥¥¥¥¥¥¥¥¥']);
await pollFor(ctx.page, () => getLinesAsArray(1), ['¥¥¥¥¥']);
// change from xterm: repeat grapheme cluster
await ctx.page.evaluate(`
window.term.reset();