Skip to content

Commit 89a3f52

Browse files
authored
Let GPU-free Chrome 144 work (#5678)
### Motivation Chrome 144 WebGL (`ui.scene`, `ui.scene_view`) test fail: https://github.com/zauberzeug/nicegui/actions/runs/21280447781/job/61251073069 ### Implementation Need additional flag: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/gpu/swiftshader.md ### Progress - [x] I chose a meaningful title that completes the sentence: "If applied, this PR will..." - [ ] The implementation is complete. (wait for pipeline and see) - [x] If this PR addresses a security issue, it has been coordinated via the [security advisory](https://github.com/zauberzeug/nicegui/security/advisories/new) process. - [x] Pytests have been added (or are not necessary). - [x] Documentation has been added (or is not necessary).
1 parent c365e19 commit 89a3f52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nicegui/testing/screen_plugin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def nicegui_chrome_options(chrome_options: webdriver.ChromeOptions) -> webdriver
3434
chrome_options.add_argument('disable-search-engine-choice-screen')
3535
chrome_options.add_argument('no-sandbox')
3636
chrome_options.add_argument('headless')
37-
chrome_options.add_argument('disable-gpu' if 'GITHUB_ACTIONS' in os.environ else '--use-gl=angle')
37+
if 'GITHUB_ACTIONS' in os.environ:
38+
chrome_options.add_argument('disable-gpu')
39+
chrome_options.add_argument('enable-unsafe-swiftshader')
40+
else:
41+
chrome_options.add_argument('--use-gl=angle')
3842
chrome_options.add_argument('window-size=600x600')
3943
chrome_options.add_experimental_option('prefs', {
4044
'download.default_directory': str(DOWNLOAD_DIR),

0 commit comments

Comments
 (0)