When annotating a test class with @WithPlaywright and using the "args" value, quarkus will always restart its instance on a per-test basis.
This is not a bug in playwright itself, so only logging this here for tracking purposes. The cause is that quarkus will check if various tests have the same combination of @QuarkusTestResources and their meta-annotations (which @WithPlaywright is) and use this to compute if they are the same. If they differ, quarkus will be restarted.
As @WithPlaywright#args is an array, this detection fails. Annotation Array values always have a fresh instance as value, an equality is checked using Objects#equals() (using Set#removeAll()).
A PR for Quarkus has been created to fix this behavior: quarkusio/quarkus#56443
When annotating a test class with
@WithPlaywrightand using the "args" value, quarkus will always restart its instance on a per-test basis.This is not a bug in playwright itself, so only logging this here for tracking purposes. The cause is that quarkus will check if various tests have the same combination of @QuarkusTestResources and their meta-annotations (which
@WithPlaywrightis) and use this to compute if they are the same. If they differ, quarkus will be restarted.As
@WithPlaywright#argsis an array, this detection fails. Annotation Array values always have a fresh instance as value, an equality is checked usingObjects#equals()(usingSet#removeAll()).A PR for Quarkus has been created to fix this behavior: quarkusio/quarkus#56443