[UI] Fix BOM pricing tooltip (#12931)

* [UI] Fix BOM pricing tooltip

* Add delay for playwright test
This commit is contained in:
Oliver
2026-09-26 09:50:13 +10:00
committed by GitHub
parent cdc92ffa3b
commit 7ece9e8487
2 changed files with 6 additions and 0 deletions
@@ -59,6 +59,8 @@ function BomPieChart({
withLabels={false} withLabels={false}
withLabelsLine={false} withLabelsLine={false}
chartLabel={t`Total Price`} chartLabel={t`Total Price`}
tooltipDataSource='segment'
tooltipProps={{ wrapperStyle: { zIndex: 1000 } }}
valueFormatter={(value) => tooltipFormatter(value, currency)} valueFormatter={(value) => tooltipFormatter(value, currency)}
/> />
</Center> </Center>
@@ -684,6 +684,10 @@ test('Stock - Default Location', async ({ browser }) => {
// Scenario 2: Duplicating a stock item should retain its original location // Scenario 2: Duplicating a stock item should retain its original location
await navigate(page, 'stock/item/2/details'); await navigate(page, 'stock/item/2/details');
await page.waitForTimeout(1000);
await page.waitForLoadState('networkidle');
await page await page
.getByRole('button', { name: 'action-menu-stock-item-actions' }) .getByRole('button', { name: 'action-menu-stock-item-actions' })
.click(); .click();