Skip to content

Commit

Permalink
Fix test data for wasm-compatibility
Browse files Browse the repository at this point in the history
- Playwright expect `json` filed in mock data
  • Loading branch information
ilgonmic authored and zoobestik committed Nov 4, 2024
1 parent 986f48b commit 87dad59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wasm-compatibility.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const JS_1_9 = Object.freeze({
jsCode: makeJSPrintCode('Hello, world!'),
errors: { 'File.kt': [] },
exception: null,
text: '<outStream>Hello, world!\n</outStream>',
text: '',
});

const OUTPUTS = Object.freeze({
Expand Down Expand Up @@ -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);
}

0 comments on commit 87dad59

Please sign in to comment.