diff --git a/apps/web/src/App.test.tsx b/apps/web/src/App.test.tsx
index ed1d1ba..f89e09e 100644
--- a/apps/web/src/App.test.tsx
+++ b/apps/web/src/App.test.tsx
@@ -5,6 +5,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import App from './App'
import { clearCsrfTokenCache } from './lib/api'
import { STOCK_FULL_MASS_G, STOCK_FULL_SCOOPS, HCL_STOCK_CAPACITY_ML, HCL_STOCK_WATER_ML, HCL_STOCK_HCL_MOLES } from './lib/benchAmounts'
+import { CHALLENGES } from './lib/challenges'
const userPayload = {
id: 'u1',
@@ -309,6 +310,9 @@ describe('App', () => {
expect(free).toBeChecked()
expect(screen.getByRole('radio', { name: 'Separate salt from sand' })).not.toBeChecked()
expect(screen.getByRole('radio', { name: 'Create table salt' })).not.toBeChecked()
+ for (const challenge of CHALLENGES) {
+ expect(screen.getByRole('radio', { name: challenge.title })).toBeInTheDocument()
+ }
expect(screen.queryByText(/lab bench below/i)).not.toBeInTheDocument()
expect(screen.queryByText(/pick a solid/i)).not.toBeInTheDocument()
})
diff --git a/apps/web/src/components/BeakerInspectPanel.tsx b/apps/web/src/components/BeakerInspectPanel.tsx
index 7c53a40..c8e73f1 100644
--- a/apps/web/src/components/BeakerInspectPanel.tsx
+++ b/apps/web/src/components/BeakerInspectPanel.tsx
@@ -3,7 +3,9 @@ import {
CompositionInspectLine,
formatTemperatureC,
formatPh,
+ formatHclWw,
phFromComposition,
+ hclInventoryMassFraction,
solventVolumeLitres,
} from '../lib/compositionDisplay'
import { optionalArray } from '../lib/scene'
@@ -22,6 +24,7 @@ export function BeakerInspectPanel({
const temperatureC = itemTemperatureC(scene, item)
const solventL = solventVolumeLitres(composition)
const ph = phFromComposition(composition)
+ const hclWw = hclInventoryMassFraction(composition)
return (
) : null}
+ {hclWw != null ? (
+ HCl: {formatHclWw(hclWw)}
+ ) : null}