Skip to content

Commit acc2c92

Browse files
committed
ACP2E-2224: Regular Price does not show on PLP for Configurable Product
1 parent e2e7eae commit acc2c92

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Block/Product/View/Type/ConfigurableViewOnCategoryPageTest.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,27 @@ public function testCheckConfigurablePriceOnSecondWebsite(): void
121121
{
122122
$this->executeInStoreContext->execute(
123123
'fixture_second_store',
124-
[$this, 'assertProductPrice'],
124+
[$this, 'assertProductPriceContains'],
125125
'configurable',
126-
__('As low as') . ' $10.00 ' . __('Regular Price') . ' $20.00'
126+
__('As low as') . ' $10.00'
127127
);
128128
$this->resetPageLayout();
129129
$this->assertProductPrice('configurable', '$150.00');
130130
}
131131

132+
/**
133+
* @param string $sku
134+
* @param string $priceString
135+
* @return void
136+
*/
137+
public function assertProductPriceContains(string $sku, string $priceString): void
138+
{
139+
$this->preparePageLayout();
140+
$this->assertCollectionSize(1, $this->getListingBlock()->getLoadedProductCollection());
141+
$priceHtml = $this->getListingBlock()->getProductPrice($this->getProduct($sku));
142+
$this->assertStringContainsString($priceString, $this->clearPriceHtml($priceHtml));
143+
}
144+
132145
/**
133146
* Checks product price.
134147
*

0 commit comments

Comments
 (0)