We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d68e0 commit b468a1fCopy full SHA for b468a1f
1 file changed
e2e/playwright.test.js
@@ -72,7 +72,7 @@ describe('examples/playwright', () => {
72
expect(data).toHaveProperty("data[1].location", "tests/example.spec.js:9:1")
73
expect(data).toHaveProperty("data[1].file_name", "tests/example.spec.js")
74
expect(data).toHaveProperty("data[1].result", "failed")
75
- expect(data).toHaveProperty("data[1].failure_reason", "Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)")
+ expect(data).toHaveProperty("data[1].failure_reason", expect.stringContaining("expect(locator).toHaveText(expected)"))
76
expect(data).toHaveProperty("data[1].failure_expanded", expect.arrayContaining([
77
expect.objectContaining({
78
expanded: expect.arrayContaining(['Expected string: "Hello, World!"', 'Received: <element(s) not found>'])
0 commit comments