Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix tag tests

Abdullah Atta6186e2200691
diff --git a/apps/web/__e2e__/tags.test.ts b/apps/web/__e2e__/tags.test.ts
index d2b781c01..4e8e2fe64 100644
--- a/apps/web/__e2e__/tags.test.ts
+++ b/apps/web/__e2e__/tags.test.ts
@@ -200,7 +200,7 @@ test(`sort tags`, async ({ page }, info) => {
});
if (!sortResult) return;
- expect(await tags.isEmpty()).toBeFalsy();
+ await expect(tags.items).toHaveCount(titles.length);
});
}
}
diff --git a/apps/web/src/components/tag/index.tsx b/apps/web/src/components/tag/index.tsx
index d04f33f76..3847e7a5b 100644
--- a/apps/web/src/components/tag/index.tsx
+++ b/apps/web/src/components/tag/index.tsx
@@ -41,7 +41,7 @@ function Tag(props: TagProps) {
item={item}
isCompact
title={
- <Text as="span" variant="body">
+ <Text as="span" variant="body" data-test-id={`title`}>
<Text as="span" sx={{ color: "accent" }}>
{"#"}
</Text>