Add a test which fails without the change

This commit is contained in:
Daniel Imms
2023-09-08 20:21:58 -07:00
parent f159a862e4
commit fa168bd4c0
3 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -400,8 +400,8 @@ export async function pollFor<T>(page: playwright.Page, evalOrFn: string | (() =
deepStrictEqual(result, val, ([
`pollFor max duration exceeded.`,
(`Last comparison: ` +
`${typeof result === 'object' ? JSON.stringify(result) : result} !== ` +
`${typeof val === 'object' ? JSON.stringify(val) : val}`),
`${typeof result === 'object' ? JSON.stringify(result) : result} (actual) !== ` +
`${typeof val === 'object' ? JSON.stringify(val) : val} (expected)`),
`Stack: ${stack}`
].join('\n')));
}