feat: add playwright and a11y audit and example test
This commit is contained in:
parent
96085ea420
commit
c6be9b5104
19 changed files with 133 additions and 2 deletions
|
|
@ -19,7 +19,8 @@ config :mv, Mv.Repo,
|
|||
config :mv, MvWeb.Endpoint,
|
||||
http: [ip: {127, 0, 0, 1}, port: 4002],
|
||||
secret_key_base: "Qbc/hcosiQzgfgMMPVs2slKjY2oqiqhpQHsV3twL9dN5GVDzsmsMWC1L/BZAU3Fd",
|
||||
server: false
|
||||
# Set to true for playwright
|
||||
server: true
|
||||
|
||||
# In test we don't send emails
|
||||
config :mv, Mv.Mailer, adapter: Swoosh.Adapters.Test
|
||||
|
|
@ -45,3 +46,16 @@ config :mv, :token_signing_secret, "test_secret_key_for_ash_authentication_token
|
|||
config :mv, :session_identifier, :unsafe
|
||||
|
||||
config :mv, :require_token_presence_for_authentication, false
|
||||
|
||||
# Playwright config
|
||||
config :phoenix_test,
|
||||
endpoint: MvWeb.Endpoint,
|
||||
otp_app: :mv,
|
||||
playwright: [
|
||||
browser: :firefox, #:chromium
|
||||
headless: System.get_env("PW_HEADLESS", "true") in ~w(t true),
|
||||
js_logger: false,
|
||||
screenshot: System.get_env("PW_SCREENSHOT", "false") in ~w(t true),
|
||||
trace: System.get_env("PW_TRACE", "false") in ~w(t true),
|
||||
browser_launch_timeout: 10_000
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue