From d3296d1ce8c50c0b98c4f597523ee2e99c5c5cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4f?= Date: Sat, 8 Jun 2024 16:18:38 +0200 Subject: [PATCH] tests fixed --- test/vitest/__tests__/components/SidePanelFooter.test.ts | 4 ++-- test/vitest/__tests__/features/components/Features.test.ts | 6 +++--- test/vitest/__tests__/features/pages/FeaturesPage.test.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/vitest/__tests__/components/SidePanelFooter.test.ts b/test/vitest/__tests__/components/SidePanelFooter.test.ts index 8cb4e1f9..20e42a8d 100644 --- a/test/vitest/__tests__/components/SidePanelFooter.test.ts +++ b/test/vitest/__tests__/components/SidePanelFooter.test.ts @@ -146,8 +146,8 @@ describe('SidePanelFooter', () => { it('should be mounted', async () => { // expect(wrapper.text()).toContain("grid"); // expect(wrapper.text()).toContain("view"); - expect(wrapper.text()).toContain("show"); - expect(wrapper.text()).toContain("chart"); + expect(wrapper.text()).toContain("settings"); + //expect(wrapper.text()).toContain("chart"); expect(wrapper.text()).not.toContain("Open Window"); }); diff --git a/test/vitest/__tests__/features/components/Features.test.ts b/test/vitest/__tests__/features/components/Features.test.ts index a4449db3..7db15800 100644 --- a/test/vitest/__tests__/features/components/Features.test.ts +++ b/test/vitest/__tests__/features/components/Features.test.ts @@ -26,14 +26,14 @@ describe('Features', () => { it('color green for active feature, grey otherwise', async () => { await useFeaturesStore().initialize(InMemoryFeaturesPersistence) - useFeaturesStore().activateFeature(FeatureIdent.TOP10) + useFeaturesStore().activateFeature(FeatureIdent.BOOKMARKS) wrapper = mount(Features); const firstFeature = wrapper.find('div.q-list > div').html() - expect(firstFeature).toContain("Top 10 Tabs"); + expect(firstFeature).toContain("Bookmarks"); expect(firstFeature).toContain("text-green"); const secondFeature = wrapper.find('div.q-list > div:nth-child(2)').html() - expect(secondFeature).toContain("Windows Management"); + expect(secondFeature).toContain("Open Tabs"); expect(secondFeature).toContain("text-grey"); }); diff --git a/test/vitest/__tests__/features/pages/FeaturesPage.test.ts b/test/vitest/__tests__/features/pages/FeaturesPage.test.ts index ad1bba95..d3ac0390 100644 --- a/test/vitest/__tests__/features/pages/FeaturesPage.test.ts +++ b/test/vitest/__tests__/features/pages/FeaturesPage.test.ts @@ -16,7 +16,7 @@ describe('FeaturesPage', () => { // @ts-ignore useRoute.mockReturnValue({ params: { - feature: "top10" + feature: "bookmarks" }, }) @@ -28,7 +28,7 @@ describe('FeaturesPage', () => { it('should be mounted', async () => { console.log("html", wrapper.html()) expect(wrapper.text()).toContain("Recommended Feature"); - expect(wrapper.text()).toContain("Activate a view to list all tabs"); + expect(wrapper.text()).toContain("Activate a Bookmark Manager in the Side Panel"); });