fix(e2e): restore chrome title slot locator; drop unused scenario hook

Ensure campaignPageChrome targets campaign-page-chrome-title after rebase,
and remove useMunicipalityEstimateScenario orphaned by B129 overview removal.
This commit is contained in:
Cursor Agent 2026-08-02 20:32:06 +00:00
parent a68e1d8efb
commit 02c4843c5c
No known key found for this signature in database
2 changed files with 1 additions and 10 deletions

View file

@ -23,16 +23,6 @@ export const MunicipalityEstimateScenarioProvider = ({ children }: { children: R
) )
} }
export const useMunicipalityEstimateScenario = (): MunicipalityEstimateScenarioContextValue => {
const value = useContext(MunicipalityEstimateScenarioContext)
if (!value) {
throw new Error(
'useMunicipalityEstimateScenario must be used within MunicipalityEstimateScenarioProvider',
)
}
return value
}
export const useMunicipalityEstimateScenarioOptional = export const useMunicipalityEstimateScenarioOptional =
(): MunicipalityEstimateScenarioContextValue | null => (): MunicipalityEstimateScenarioContextValue | null =>
useContext(MunicipalityEstimateScenarioContext) useContext(MunicipalityEstimateScenarioContext)

View file

@ -565,6 +565,7 @@ export const campaignPageChrome = (page: Page, title: string) =>
page page
.locator('[data-slot="campaign-page-chrome"]') .locator('[data-slot="campaign-page-chrome"]')
.filter({ visible: true }) .filter({ visible: true })
.locator('[data-slot="campaign-page-chrome-title"]')
.getByText(title, { exact: true }) .getByText(title, { exact: true })
export { expect } export { expect }