Remove BrowserWebDriverContainer capabilities when an image is given

MSAL

Testcontainers 2 removed withCapabilities(..) and withDesiredCapabilities(..) from BrowserWebDriverContainer. With an explicit image the capabilities were only used by getWebDriver(), which Testcontainers 2 removed as well, so the call is removed from a chain that starts with new BrowserWebDriverContainer(image). Without an image the capabilities chose the browser image, so those calls are left for a manual migration.

org.openrewrite.java.testing.testcontainers.RemoveBrowserWebDriverContainerCapabilities
mod run . --recipe=org.openrewrite.java.testing.testcontainers.RemoveBrowserWebDriverContainerCapabilities

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.