Skip to content

Commit 87dad59

Browse files
ilgonmiczoobestik
authored andcommitted
Fix test data for wasm-compatibility
- Playwright expect `json` filed in mock data
1 parent 986f48b commit 87dad59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/wasm-compatibility.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const JS_1_9 = Object.freeze({
1616
jsCode: makeJSPrintCode('Hello, world!'),
1717
errors: { 'File.kt': [] },
1818
exception: null,
19-
text: '<outStream>Hello, world!\n</outStream>',
19+
text: '',
2020
});
2121

2222
const OUTPUTS = Object.freeze({
@@ -49,6 +49,6 @@ async function run(page: Page, platform: keyof typeof OUTPUTS) {
4949
);
5050
const editor = page.locator(WIDGET_SELECTOR);
5151
const postData = `{"args":"","files":[{"name":"File.kt","text":"${toPostData(source)}","publicId":""}],"confType":"${platform}"}`;
52-
await checkRunCase(page, editor, postData, OUTPUTS[platform]);
52+
await checkRunCase(page, editor, postData, { json: OUTPUTS[platform] });
5353
await expect(editor.locator(RESULT_SELECTOR)).toHaveText(text);
5454
}

0 commit comments

Comments
 (0)