Run selenium tests with chrome (#4393)

This commit is contained in:
Lauri Tulmin 2021-10-15 22:30:03 +03:00 committed by GitHub
parent 0ba49ac850
commit 42dc837eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import io.opentelemetry.semconv.trace.attributes.SemanticAttributes
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.util.resource.Resource
import org.eclipse.jetty.webapp.WebAppContext
import org.openqa.selenium.firefox.FirefoxOptions
import org.openqa.selenium.chrome.ChromeOptions
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.testcontainers.Testcontainers
@ -54,7 +54,7 @@ class GwtTest extends AgentInstrumentationSpecification implements HttpServerTes
Testcontainers.exposeHostPorts(port)
browser = new BrowserWebDriverContainer<>()
.withCapabilities(new FirefoxOptions())
.withCapabilities(new ChromeOptions())
.withLogConsumer(new Slf4jLogConsumer(logger))
browser.start()

View File

@ -11,7 +11,7 @@ import io.opentelemetry.api.trace.SpanKind
import io.opentelemetry.instrumentation.test.AgentInstrumentationSpecification
import io.opentelemetry.instrumentation.test.asserts.TraceAssert
import io.opentelemetry.instrumentation.test.base.HttpServerTestTrait
import org.openqa.selenium.firefox.FirefoxOptions
import org.openqa.selenium.chrome.ChromeOptions
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.boot.SpringApplication
@ -48,7 +48,7 @@ abstract class AbstractVaadinTest extends AgentInstrumentationSpecification impl
Testcontainers.exposeHostPorts(port)
browser = new BrowserWebDriverContainer<>()
.withCapabilities(new FirefoxOptions())
.withCapabilities(new ChromeOptions())
.withLogConsumer(new Slf4jLogConsumer(logger))
browser.start()