test(e2e): take the mood empty state's add control in the managed-profile journey

Since an empty mood list carries the one add control and the header drops
its own, the journey clicked a header button that unmounted as the list
resolved. Start the profile without entries, assert the empty-state add,
then the header add once an entry exists. Both carry a data-slot.
This commit is contained in:
Marc-André Bombeck committed 2026-10-09 00:41:54 +02:00
1 parent 10f17e71e3
commit 4a02b78f5a
2 files changed
+34 -4

No files matched your search

+5 -1
View File
@@ -742,7 +742,11 @@ export function MoodList({ onAddFirst, onEmptyChange }: MoodListProps = {}) {
{t("mood.emptyResetFilter")}
</Button>
) : onAddFirst && canManageMind ? (
<Button size="sm" onClick={onAddFirst}>
<Button
size="sm"
onClick={onAddFirst}
data-slot="mood-add-first"
>
<Plus className="h-4 w-4" />
{t("mood.emptyAddFirst")}
</Button>