Skip to content

Commit

Permalink
test: fix test on 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 7, 2024
1 parent 7999d54 commit 4339b24
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integration_test/chrome/capabilities_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,18 @@ defmodule Wallaby.Integration.CapabilitiesTest do
chromeOptions: %{args: ["--headless", "--user-agent=#{user_agent}"]}
}

metadata =
if Version.compare(System.version(), "1.16.0") in [:eq, :gt] do
"g2gCdwJ2MXQAAAABbQAAAARzb21lbQAAAAhtZXRhZGF0YQ=="
else
"g2gCZAACdjF0AAAAAW0AAAAEc29tZW0AAAAIbWV0YWRhdGE="
end

expected_capabilities = %{
chromeOptions: %{
args: [
"--headless",
"--user-agent=#{user_agent}/BeamMetadata (g2gCdwJ2MXQAAAABbQAAAARzb21lbQAAAAhtZXRhZGF0YQ==)"
"--user-agent=#{user_agent}/BeamMetadata (#{metadata})"
]
}
}
Expand Down

0 comments on commit 4339b24

Please sign in to comment.