From fe8846ba81e80222fb4de19fc1beed37282cb958 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 5 Nov 2024 15:36:49 +0100 Subject: [PATCH] Set environment variable in test --- .github/workflows/end-to-end-tests.yml | 2 +- packages/realtime-compiler/tests/RealtimeCompilerTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 057ae4a1e76..2ec8a249556 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -30,7 +30,7 @@ jobs: run: vendor/bin/pest --stop-on-failure - name: Prepare the Environment - run: echo -e "APP_URL=http://localhost:8080 \nDUSK_ENABLED=true\nSERVER_DASHBOARD=false" > .env + run: echo -e "APP_URL=http://localhost:8080 \nDUSK_ENABLED=true\nSERVER_DASHBOARD=false\nSERVER_SAVE_PREVIEW=true" > .env - name: Upgrade Chrome Driver run: php hyde dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1` diff --git a/packages/realtime-compiler/tests/RealtimeCompilerTest.php b/packages/realtime-compiler/tests/RealtimeCompilerTest.php index 8ee16c74409..45e78abd550 100644 --- a/packages/realtime-compiler/tests/RealtimeCompilerTest.php +++ b/packages/realtime-compiler/tests/RealtimeCompilerTest.php @@ -17,7 +17,6 @@ class RealtimeCompilerTest extends UnitTestCase public static function setUpBeforeClass(): void { putenv('SERVER_LIVE_EDIT=false'); - putenv('SERVER_SAVE_PREVIEW=true'); define('BASE_PATH', realpath(__DIR__.'/../../../'));