From d7132e8376799e70a08d3c9562bdcf9ac2c8947b Mon Sep 17 00:00:00 2001 From: Chin Leung Date: Mon, 17 Feb 2020 21:43:07 -0500 Subject: [PATCH] Refresh the project, build and session name between tests --- src/RunsOnBrowserStack.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/RunsOnBrowserStack.php b/src/RunsOnBrowserStack.php index 99eeede..b881a9d 100644 --- a/src/RunsOnBrowserStack.php +++ b/src/RunsOnBrowserStack.php @@ -177,17 +177,16 @@ protected function capabilitiesForBrowserStack(): array if (! isset(static::$capabilities[$slug])) { static::$capabilities[$slug] = array_merge( - [ - 'project' => $this->getProjectName(), - 'build' => $this->getBuildName(), - 'name' => $this->getSessionName(), - ], Arr::dot(config('browserstack.capabilities')), $this->browserCapabilities() ); } - return static::$capabilities[$slug]; + return array_merge(static::$capabilities[$slug], [ + 'project' => $this->getProjectName(), + 'build' => $this->getBuildName(), + 'name' => $this->getSessionName(), + ]); } /**