Skip to content

Commit abbbab0

Browse files
author
Anna Bukatar
committed
MC-42347: Recently Viewed : add to cart action not landing on product details page
- Fixed brocken test
1 parent 9cc9e63 commit abbbab0

File tree

1 file changed

+2
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Product

1 file changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/ViewTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ public function testViewUnexistedProduct(): void
327327
public function testViewWithRedirect(): void
328328
{
329329
$product = $this->productRepository->get('simple2');
330-
$url = $this->config->getValue(Store::XML_PATH_UNSECURE_BASE_LINK_URL);
330+
$url = rtrim($this->config->getValue(Store::XML_PATH_UNSECURE_BASE_LINK_URL), '/');
331331
$this->getRequest()
332332
->setParams([
333333
ActionInterface::PARAM_NAME_URL_ENCODED => $this->urlEncoder->encode($url),
334334
])
335335
->setMethod(HttpRequest::METHOD_POST);
336-
$this->dispatch(sprintf('catalog/product/view/id/%s/', $product->getId()));
336+
$this->dispatch(sprintf('/catalog/product/view/id/%s/', $product->getId()));
337337
$this->assertRedirect($this->stringContains($url));
338338
}
339339

0 commit comments

Comments
 (0)