9 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Review\Test\Page\Adminhtml\ReviewIndex;
12 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
13 use Magento\Review\Test\Page\Adminhtml\ReviewEdit;
45 ReviewIndex $reviewIndex,
47 ReviewEdit $reviewEdit,
53 $reviewGrid = $reviewIndex->getReviewGrid();
54 $reviewGrid->searchAndOpen([
'title' =>
$review->getTitle()]);
56 $reviewEdit->getReviewForm()->setApproveReview();
57 $reviewEdit->getPageActions()->save();
70 $this->cachePage->open();
71 $this->cachePage->getActionsBlock()->flushCacheStorage();
72 $this->cachePage->getModalBlock()->acceptAlert();
73 \PHPUnit\Framework\Assert::assertTrue(
74 $this->cachePage->getActionsBlock()->isStorageCacheFlushed(),
75 'Cache is not flushed.' 86 return 'Review status is change to approve.';
processAssert(ReviewIndex $reviewIndex)
processAssert(ReviewIndex $reviewIndex, Review $review, ReviewEdit $reviewEdit, AssertReviewSuccessSaveMessage $assertReviewSuccessSaveMessage, AdminCache $cachePage)
flushCacheStorageWithAssert()