From a8ef1d49a112576d0b240c17c8c3fcb27f97bc9e Mon Sep 17 00:00:00 2001 From: tisilent Date: Tue, 19 Sep 2023 22:15:35 +0800 Subject: [PATCH] Add block cursor style confirmation --- test/playwright/SharedRendererTests.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/playwright/SharedRendererTests.ts b/test/playwright/SharedRendererTests.ts index fee539bd..1fe67351 100644 --- a/test/playwright/SharedRendererTests.ts +++ b/test/playwright/SharedRendererTests.ts @@ -1159,10 +1159,13 @@ export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void await ctx.value.proxy.write('\x1b[A'); await ctx.value.proxy.write('\x1b[A'); await ctx.value.proxy.scrollLines(-2); - await ctx.value.proxy.blur(); const rows = await ctx.value.proxy.rows; - await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1 , rows), [0, 0, 0, 255]); - await pollFor(ctx.value.page, () => getCellColor(ctx.value ,1 , rows, CellColorPosition.FIRST), [0, 0, 255, 255]); + // block cursor style + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, rows), [0, 0, 0, 255]); + await ctx.value.proxy.blur(); + // other cursor style + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, rows), [0, 0, 0, 255]); + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, rows, CellColorPosition.FIRST), [0, 0, 255, 255]); }); }); }