test: windows clipboard contains \r\n (#34966)

This commit is contained in:
Simon Knott 2025-02-28 09:37:48 +01:00 committed by GitHub
parent fe9b4a841e
commit 44712fb8eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ test('fails', async () => {
await page.locator('.tab-errors').getByRole('button', { name: 'Copy as Prompt' }).click();
const prompt = await page.evaluate(() => navigator.clipboard.readText());
expect(prompt, 'contains error').toContain('expect(received).toBe(expected)');
expect(prompt, 'contains codeframe').toContain(`
expect(prompt.replaceAll('\r\n', '\n'), 'contains codeframe').toContain(`
1 | import { test, expect } from '@playwright/test';
2 | test('fails', async () => {
> 3 | expect(1).toBe(2);