Skip to content

Commit

Permalink
Use relative path for extension path #16
Browse files Browse the repository at this point in the history
cause of different directory structure in github actions
  • Loading branch information
robertfausk committed May 7, 2024
1 parent 402b413 commit 9b3390b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/Driver/PantherFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function test_build_chrome_driver_with_chrome_options_as_object_instead_o
],
'args' => ['start-maximized'],
'binary' => ['/path/to/acme'],
'extensions' => ['/var/www/html/tests/fixtures/extension_dummy.ext'],
'extensions' => ['tests/fixtures/extension_dummy.ext'],
],
],
],
Expand All @@ -111,7 +111,7 @@ public function test_build_chrome_driver_with_chrome_options_as_object_instead_o
// base64 encoded value of extension file content
$this->assertSame(['MTIzNDU2Nzg5MA=='], $chromeOptions['extensions']);
} else {
$this->assertSame(['/var/www/html/tests/fixtures/extension_dummy.ext'], $chromeOptions['extensions']);
$this->assertSame(['tests/fixtures/extension_dummy.ext'], $chromeOptions['extensions']);
}

$this->assertSame(['download.default_directory' => '/var/www/html/tests/files/Downloads'], $chromeOptions['prefs']);
Expand Down

0 comments on commit 9b3390b

Please sign in to comment.