File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ async def test_workers_should_report_network_activity_on_worker_creation(
189189
190190
191191async def test_workers_should_format_number_using_context_locale (
192- browser : Browser , server : Server
192+ browser : Browser , server : Server , browser_name : str
193193) -> None :
194194 context = await browser .new_context (locale = "ru-RU" )
195195 page = await context .new_page ()
@@ -199,7 +199,9 @@ async def test_workers_should_format_number_using_context_locale(
199199 "() => new Worker(URL.createObjectURL(new Blob(['console.log(1)'], {type: 'application/javascript'})))"
200200 )
201201 worker = await worker_info .value
202- assert await worker .evaluate ("() => (10000.20).toLocaleString()" ) == "10\u00a0 000,2"
202+ # Firefox 146 seems to have a locale bug
203+ expected = "10.000,2" if browser_name == "firefox" else "10\u00a0 000,2"
204+ assert await worker .evaluate ("() => (10000.20).toLocaleString()" ) == expected
203205 await context .close ()
204206
205207
You can’t perform that action at this time.
0 commit comments