From 02ff3dd07a6b71f04b718a722354c6335f5d7ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4f?= Date: Wed, 13 Nov 2024 08:01:50 +0100 Subject: [PATCH] preparing release due to security alert --- .../{SidePanelPage.test.ts => SidePanelPage2.test.ts} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename test/vitest/__tests__/pages/{SidePanelPage.test.ts => SidePanelPage2.test.ts} (92%) diff --git a/test/vitest/__tests__/pages/SidePanelPage.test.ts b/test/vitest/__tests__/pages/SidePanelPage2.test.ts similarity index 92% rename from test/vitest/__tests__/pages/SidePanelPage.test.ts rename to test/vitest/__tests__/pages/SidePanelPage2.test.ts index 57fd9f20..e315c75c 100644 --- a/test/vitest/__tests__/pages/SidePanelPage.test.ts +++ b/test/vitest/__tests__/pages/SidePanelPage2.test.ts @@ -3,7 +3,7 @@ import {mount, VueWrapper} from '@vue/test-utils'; import {beforeAll, beforeEach, describe, expect, it, vi} from 'vitest'; import {createPinia, setActivePinia} from "pinia"; import ChromeApi from "src/app/BrowserApi"; -import SidePanelPage from "pages/SidePanelPage.vue"; +import SidePanelPage2 from "pages/SidePanelPage2.vue"; import {useDB} from "src/services/usePersistenceService"; import {useQuasar} from "quasar"; import {CreateTabsetCommand} from "src/tabsets/commands/CreateTabsetCommand"; @@ -15,7 +15,7 @@ import {useTabsetsStore} from "src/tabsets/stores/tabsetsStore"; installQuasarPlugin(); -describe('SidePanelPage', () => { +describe('SidePanelPage2', () => { vi.mock("vue-i18n", () => ({ @@ -68,21 +68,21 @@ describe('SidePanelPage', () => { vi.stubGlobal('chrome', chromeMock); - wrapper = mount(SidePanelPage); + wrapper = mount(SidePanelPage2); }) it('should be mounted', async () => { useTabsStore2().setCurrentChromeTab(skysailChromeTab) console.log("hier", wrapper.html()) - expect(wrapper.text()).toContain("My Tabsets"); + expect(wrapper.text()).toContain("how to start?"); expect(wrapper.text()).not.toContain("search"); }); it('should show existing tabset', async () => { await new CreateTabsetCommand("existing Tabset", []).execute() useTabsStore2().setCurrentChromeTab(skysailChromeTab) - const wrapper = mount(SidePanelPage); + const wrapper = mount(SidePanelPage2); //console.log("hier", wrapper.html()) //console.log("hier2", wrapper.text()) expect(wrapper.html()).toContain("existing Tabset");