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:
parent
a68e1d8efb
commit
02c4843c5c
2 changed files with 1 additions and 10 deletions
|
|
@ -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 =
|
||||
(): MunicipalityEstimateScenarioContextValue | null =>
|
||||
useContext(MunicipalityEstimateScenarioContext)
|
||||
|
|
|
|||
|
|
@ -565,6 +565,7 @@ export const campaignPageChrome = (page: Page, title: string) =>
|
|||
page
|
||||
.locator('[data-slot="campaign-page-chrome"]')
|
||||
.filter({ visible: true })
|
||||
.locator('[data-slot="campaign-page-chrome-title"]')
|
||||
.getByText(title, { exact: true })
|
||||
|
||||
export { expect }
|
||||
|
|
|
|||
Loading…
Reference in a new issue