mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 03:24:01 +09:00
Backport #39838 by @silverwind When `navigator.clipboard.readText()` runs before the page's copy has landed, Firefox shows its "Paste" prompt, which cannot be interacted with when headless. Avoid that and and use `dom.events.testing.asyncClipboard` which is a pref meant for testing that disabes this prompt. Fixes: https://github.com/go-gitea/gitea/actions/runs/39113819632/job/117635434106 Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -34,6 +34,11 @@ export default defineConfig({
|
||||
name: 'firefox',
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
launchOptions: {
|
||||
firefoxUserPrefs: {
|
||||
'dom.events.testing.asyncClipboard': true, // disable paste prompt
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user