Skip to content

Commit

Permalink
Use new headless parameters for testing in Chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jan 22, 2025
1 parent e471127 commit b420fa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
timeout-minutes: 15

steps:
- name: Install Crystal
Expand Down Expand Up @@ -42,8 +43,6 @@ jobs:

- name: Run CLI specs
run: crystal spec spec_cli/*_spec.cr spec_cli/**/*_spec.cr --error-on-warnings --error-trace
continue-on-error: true
timeout-minutes: 2

- name: Run core specs (Firefox)
working-directory: ./core/tests
Expand Down
2 changes: 1 addition & 1 deletion spec_cli/test_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ context "test" do
TEXT
end

pending "runs the tests" do
it "runs the tests" do
expect_output ["test"], clear_env: false, template: <<-TEXT
Mint - Running tests
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down
5 changes: 2 additions & 3 deletions src/test_runner/browser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ module Mint
])
when "chrome"
Process.new(@path, args: [
"--profile-directory=#{profile_directory}",
"--remote-debugging-port=9222",
"--user-data-dir=#{profile_directory}",
"--window-size=1920,1080",
"--headless=old",
"--disable-gpu",
"--headless",
url,
])
else
Expand Down

0 comments on commit b420fa7

Please sign in to comment.