Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
evandor committed Jun 8, 2024
1 parent 0aa4fc1 commit d3296d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/vitest/__tests__/components/SidePanelFooter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down
6 changes: 3 additions & 3 deletions test/vitest/__tests__/features/components/Features.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down
4 changes: 2 additions & 2 deletions test/vitest/__tests__/features/pages/FeaturesPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('FeaturesPage', () => {
// @ts-ignore
useRoute.mockReturnValue({
params: {
feature: "top10"
feature: "bookmarks"
},
})

Expand All @@ -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");
});


Expand Down

0 comments on commit d3296d1

Please sign in to comment.