mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-23 06:33:06 +00:00
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 =
|
export const useMunicipalityEstimateScenarioOptional =
|
||||||
(): MunicipalityEstimateScenarioContextValue | null =>
|
(): MunicipalityEstimateScenarioContextValue | null =>
|
||||||
useContext(MunicipalityEstimateScenarioContext)
|
useContext(MunicipalityEstimateScenarioContext)
|
||||||
|
|
|
||||||
|
|
@ -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 }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue