Test theme toggle feature (#212)

* WIP

* Add test on theme toggle

* Add teardown logic

* Cleanup menu setting
This commit is contained in:
Chenlei Hu
2024-07-23 17:56:35 -04:00
committed by GitHub
parent 1b7db43f8a
commit 5b4e96f6c5
4 changed files with 120 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
<template>
<Button
:icon="props.icon"
:class="props.class"
text
:pt="{
root: `side-bar-button ${
@@ -25,6 +26,10 @@ const props = defineProps({
type: String,
default: "",
},
class: {
type: String,
default: "",
},
});
const emit = defineEmits(["click"]);

View File

@@ -3,6 +3,7 @@
:icon="icon"
@click="toggleTheme"
:tooltip="$t('sideToolBar.themeToggle')"
class="comfy-vue-theme-toggle"
/>
</template>