Skip to content

Commit

Permalink
Fix regressed text for Firefox version die to headless mode (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jan 20, 2021
1 parent 5b3b324 commit 05fcf5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main.bats
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
[ ! "$output" = '' ]
expected="$output"

run docker run --rm --entrypoint sh $IMAGE -c \
"/opt/firefox/firefox -v | cut -d ' ' -f3"
run docker run --rm -e MOZ_HEADLESS=0 --entrypoint sh $IMAGE -c \
"/opt/firefox/firefox -v"
[ "$status" -eq 0 ]
[ ! "$output" = '' ]
actual="$output"
actual=$(printf "$output" | grep -m 1 'Mozilla Firefox' | cut -d ' ' -f3)

[ "$actual" = "$expected" ]
}
Expand Down

0 comments on commit 05fcf5f

Please sign in to comment.