We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1cae1 commit 09de333Copy full SHA for 09de333
tests/tools/console.test.ts
@@ -35,6 +35,19 @@ describe('console', () => {
35
);
36
});
37
38
+
39
+ it.only('work with primitive unhandled errors', async () => {
40
+ await withBrowser(async (response, context) => {
41
+ const page = await context.newPage();
42
+ await page.setContent('<script>throw undefined;</script>');
43
+ await listConsoleMessages.handler({params: {}}, response, context);
44
+ const formattedResponse = await response.handle('test', context);
45
+ const textContent = formattedResponse[0] as {text: string};
46
+ assert.ok(
47
+ textContent.text.includes('msgid=1 [error] undefined (0 args)'),
48
+ );
49
+ });
50
51
52
53
describe('get_console_message', () => {
0 commit comments