make test change more obvious

This commit is contained in:
Simon Knott 2024-12-30 12:31:32 +01:00
parent 365b30f64f
commit d277551177
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -566,7 +566,7 @@ test('should opt out of attachments', async ({ runInlineTest, server }, testInfo
'After Hooks', 'After Hooks',
]); ]);
expect(trace.actions[1].attachments).toEqual(undefined); expect(trace.actions[1].attachments).toEqual(undefined);
expect([...trace.resources.keys()].filter(f => f.startsWith('resources/'))).toEqual([expect.stringMatching(/^resources\/src@.*$/)]); expect([...trace.resources.keys()].filter(f => f.startsWith('resources/') && !f.startsWith('resources/src@'))).toHaveLength(0);
}); });
test('should record with custom page fixture', async ({ runInlineTest }, testInfo) => { test('should record with custom page fixture', async ({ runInlineTest }, testInfo) => {