-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chromium): continue requests paused for the second time (#27429)
Sometimes Chromium restarts requests. This leads to multiple `Fetch.requestPaused` for a single `Network.requestWillBeSent`. Fixes #27294.
- Loading branch information
Showing
8 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/components/ct-react-vite/src/components/TitleWithFont.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.title-with-font { | ||
font-family: pwtest-iconfont, sans-serif; | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/components/ct-react-vite/src/components/TitleWithFont.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import './TitleWithFont.css'; | ||
|
||
export default function TitleWithFont() { | ||
return <div className='title-with-font'>+-</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { test, expect } from '@playwright/experimental-ct-react'; | ||
import TitleWithFont from '@/components/TitleWithFont'; | ||
|
||
test('should load font without routes', async ({ mount, page }) => { | ||
const promise = page.waitForEvent('requestfinished', request => request.url().includes('iconfont')); | ||
await mount(<TitleWithFont />); | ||
const request = await promise; | ||
const response = await request.response(); | ||
const body = await response!.body(); | ||
expect(body.length).toBe(2656); | ||
}); | ||
|
||
test('should load font with routes', async ({ mount, page }) => { | ||
test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27294' }); | ||
await page.route('**/*.json', r => r.continue()); | ||
const promise = page.waitForEvent('requestfinished', request => request.url().includes('iconfont')); | ||
await mount(<TitleWithFont />); | ||
const request = await promise; | ||
const response = await request.response(); | ||
const body = await response!.body(); | ||
expect(body.length).toBe(2656); | ||
}); |