Skip to content

Commit

Permalink
Refresh the project, build and session name between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Feb 18, 2020
1 parent fecdec1 commit d7132e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/RunsOnBrowserStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);
}

/**
Expand Down

0 comments on commit d7132e8

Please sign in to comment.