You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: OptionsFactory that has access to test instance fields聽#1881
I'd like the ability to populate Options for use with @UsePlaywright with values that are determined by the running test, not just statically.
The OptionsFactory approach to customizing @UsePlaywright has a big gap - it can't access instance fields of the test. A non-static inner class doesn't work as it requires the outer class as a constructor argument.
I'm trying to use Playwright with a fake server (Spring MockMVC, Micronaut EmbeddedServer, etc). These approaches all inject a server into an instance field of the test class, and one retrieves the base URL from that server. However, OptionsFactory is initialized outside of the test instance scope, and so can't make use of that injected server.
Activity
wissamsu commentedon Jan 18, 2026
Honest question why not springboot or quarkus, why pick micronaut
yury-s commentedon Mar 23, 2026
uchagani (@uchagani) any thoughts on this?
uchagani commentedon Apr 3, 2026
on the surface i think this is doable. i'm not sure if i'll have the time to implement this myself but I think it's worth doing.