We test webpack in MiddlewareTest on `/environments`, we need to switch to resource that stays in core.
Fixes #31107 - test Middleware on domain resource
As we are about to remove puppet, we will remove /environments.
We need to switch the resource we test webpack Middleware on.
We can use domains as those are similarly simple as environments.