Frozen material behaves differently in playwright test

repro.zip (8.5 KB)

Steps to reproduce:

  1. Install dependencies
  2. Debug the “Babylon.js scene” testcase
  3. In the test browser window console, set the material alpha like this:
    scene.getMaterialByName(“alphaMat”).alpha = 0.6
  4. Mark the material as dirty to see the change:
    scene.getMaterialByName(“alphaMat”).markDirty()

What is confusing is that step 4 isn’t necessary when you do it in a normal Chrome browser (or even when you open a new window in the same Chromium instance playwright is controlling). Why is there a difference?

I think it is more a playwright question on their infra as their should not be a difference. Maybe check with Claude as well ?