-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: PDF Preview is not working on webkit #31430
Comments
PDF preview is not a part of WebContent, rather a Safari plugin. It is outside of scope for Playwright testing. |
I don't know what ENABLE_PDFJS is. But, GTK and WPE ports enable it. |
There isn't much we can test / validate about the pdf viewer. |
I think we'd much rather prefer that pdfs trigger downloads, like WK/FF are already doing as per #7822. |
How can we add it in the config for enabling in webkit , like we have done for forefox above ? |
There is no such config in Playwright. |
Folding into #7822 - enabling PDF viewer is outside of our e2e testing scope. |
Version
1.42.1
Steps to reproduce
Run any Test case which requires PDF preview and content validation for webkit browser
Expected behavior
PDF should be preview on clicking on it
Actual behavior
PDF is not previewed and blank PDF is displayed for webkit browser
Additional context
It worked with firefox with below launch options
name: 'firefox',
use: {
...devices['Desktop Firefox'],
storageState: 'tests/.auth/user.json',
launchOptions: {
firefoxUserPrefs: {
"pdfjs.disabled": false,
}
}
},
dependencies: ['setup']
Environment
The text was updated successfully, but these errors were encountered: