diff --git a/__tests__/e2e/.vitepress/theme/components/ApiPreference.vue b/__tests__/e2e/.vitepress/theme/components/ApiPreference.vue index c286640b..0dfe61c8 100644 --- a/__tests__/e2e/.vitepress/theme/components/ApiPreference.vue +++ b/__tests__/e2e/.vitepress/theme/components/ApiPreference.vue @@ -5,12 +5,13 @@ const props = defineProps<{ options: string[] defaultOption: string screenMenu?: boolean + menu?: boolean }>() // reactivity isn't needed for props here const key = removeSpaces(`api-preference-${props.options.join('-')}`) -const name = key + (props.screenMenu ? '-screen-menu' : '') +const name = key + (props.screenMenu ? '-screen-menu' : props.menu ? '-menu' : '') const selected = useLocalStorage(key, () => props.defaultOption) @@ -25,8 +26,11 @@ function removeSpaces(str: string) {