Skip to content

Commit 73f76af

Browse files
author
Egor Shitikov
committed
MAGETWO-33894: [GITHUB] Admin dashboard Most Viewed Products Tab issue (without product list) #1029
1 parent cf26f7f commit 73f76af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Dashboard/ProductsViewedTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@
66
*/
77
namespace Magento\Backend\Controller\Adminhtml\Dashboard;
88

9+
910
class ProductsViewedTest extends \Magento\Backend\Utility\Controller
1011
{
12+
/**
13+
* @magentoDataFixture Magento/Reports/_files/viewed_products.php
14+
*/
1115
public function testExecute()
1216
{
1317
$this->dispatch('backend/admin/dashboard/productsViewed/');
18+
1419
$this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
1520

1621
$actual = $this->getResponse()->getBody();
17-
$this->assertContains('dashboard-item-content', $actual);
22+
$this->assertContains('Simple Product', $actual);
1823
}
1924
}

0 commit comments

Comments
 (0)