From 8d18b93ba3ac43c71a1da5de479086c7d9039a8e Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Wed, 24 Sep 2025 10:08:15 -1000 Subject: [PATCH] WIP To reproduce run: WALLABY_DRIVER=chrome mix test integration_test/cases/browser/assert_refute_has_test.exs:29 --- config/test.exs | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/config/test.exs b/config/test.exs index 31f89b3c..f7cacdc2 100644 --- a/config/test.exs +++ b/config/test.exs @@ -2,5 +2,31 @@ import Config # Prevents timeouts in ExUnit config :wallaby, - hackney_options: [timeout: 10_000, recv_timeout: 10_000], - tmp_dir_prefix: "wallaby_test" + hackney_options: [timeout: 10, recv_timeout: 10], + tmp_dir_prefix: "wallaby_test", + chromedriver: [ + headless: false, + capabilities: %{ + javascriptEnabled: false, + loadImages: false, + version: "", + rotatable: false, + takesScreenshot: true, + cssSelectorsEnabled: true, + nativeEvents: false, + platform: "ANY", + unhandledPromptBehavior: "accept", + loggingPrefs: %{ + browser: "DEBUG" + }, + chromeOptions: %{ + args: [ + "--no-sandbox", + "--enable-gpu", + "window-size=1280,800", + "--fullscreen", + "--user-agent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" + ] + } + } + ]