Add the configuration for wallaby.

This commit is contained in:
2024-09-06 12:54:20 +03:00
parent ddf54a9264
commit 9e22e1bfde
3 changed files with 12 additions and 2 deletions
+8 -1
View File
@@ -21,7 +21,7 @@ config :link_shortener, LinkShortener.Repo,
config :link_shortener, LinkShortenerWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: System.get_env("SECRET_KEY_BASE"),
server: false
server: true
# In test we don't send emails
config :link_shortener, LinkShortener.Mailer, adapter: Swoosh.Adapters.Test
@@ -38,3 +38,10 @@ config :phoenix, :plug_init_mode, :runtime
# Enable helpful, but potentially expensive runtime checks
config :phoenix_live_view,
enable_expensive_runtime_checks: true
config :wallaby,
otp_app: :link_shortener,
screenshot_on_failure: true,
screenshot_dir: "screenshots",
driver: Wallaby.Selenium