Skip to content

Commit 4082762

Browse files
Mohit.k.SharmaMohit.k.Sharma
Mohit.k.Sharma
authored and
Mohit.k.Sharma
committed
MQE-2953 | Fix Code Review Points
1 parent 857dec4 commit 4082762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ public function grabCookieAttributes(string $cookie, array $params = []): array
821821
{
822822
$params['name'] = $cookie;
823823
$cookieArrays = $this->filterCookies($this->webDriver->manage()->getCookies(), $params);
824+
$cookieAttributes = [];
824825
if (is_array($cookieArrays)) { // Microsoft Edge returns null if there are no cookies...
825-
$cookieAttributes = [];
826826
foreach ($cookieArrays as $cookieArray) {
827827
if ($cookieArray->getName() === $cookie) {
828828
$cookieAttributes['name'] = $cookieArray->getValue();
@@ -838,7 +838,7 @@ public function grabCookieAttributes(string $cookie, array $params = []): array
838838
}
839839
}
840840

841-
return [];
841+
return $cookieAttributes;
842842
}
843843

844844
/**

0 commit comments

Comments
 (0)