From 3006cb7f5a05d872dd5ae7f31622a6cbd709d66d Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Mon, 4 Nov 2024 12:51:02 +0100 Subject: [PATCH] Fix test data for wasm-compatibility - Playwright expect `json` filed in mock data --- tests/wasm-compatibility.e2e.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wasm-compatibility.e2e.ts b/tests/wasm-compatibility.e2e.ts index de710b9..ba4e744 100644 --- a/tests/wasm-compatibility.e2e.ts +++ b/tests/wasm-compatibility.e2e.ts @@ -16,7 +16,7 @@ const JS_1_9 = Object.freeze({ jsCode: makeJSPrintCode('Hello, world!'), errors: { 'File.kt': [] }, exception: null, - text: 'Hello, world!\n', + text: '', }); const OUTPUTS = Object.freeze({ @@ -49,6 +49,6 @@ async function run(page: Page, platform: keyof typeof OUTPUTS) { ); const editor = page.locator(WIDGET_SELECTOR); const postData = `{"args":"","files":[{"name":"File.kt","text":"${toPostData(source)}","publicId":""}],"confType":"${platform}"}`; - await checkRunCase(page, editor, postData, OUTPUTS[platform]); + await checkRunCase(page, editor, postData, { json: OUTPUTS[platform] }); await expect(editor.locator(RESULT_SELECTOR)).toHaveText(text); }