Skip to content

Playwright always restarts in test mode when using @WithPlaywright using args #231

Description

@jfbenckhuijsen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions