From 9b3390b30877e31f4a61b8d00b614777213b8115 Mon Sep 17 00:00:00 2001 From: robertfausk Date: Tue, 7 May 2024 09:14:59 +0200 Subject: [PATCH] Use relative path for extension path #16 cause of different directory structure in github actions --- tests/Unit/Driver/PantherFactoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Driver/PantherFactoryTest.php b/tests/Unit/Driver/PantherFactoryTest.php index c970b39..16a638e 100644 --- a/tests/Unit/Driver/PantherFactoryTest.php +++ b/tests/Unit/Driver/PantherFactoryTest.php @@ -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'], ], ], ], @@ -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']);