fix(tests): update AboutPage tests for new localization strings and correct reaction drag cleanup method reference

This commit is contained in:
Ivan 2026-07-10 01:04:52 -05:00
parent 92083de57d
commit a50a7bd899
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -118,8 +118,9 @@ describe("AboutPage.vue", () => {
expect(wrapper.text()).toContain("hash2");
expect(wrapper.text()).toContain("about.dependency_chain");
expect(wrapper.text()).toContain("about.dep_lxmf_subtitle");
expect(wrapper.text()).toContain("about.dep_rns_subtitle");
expect(wrapper.text()).toContain("LXMFy");
expect(wrapper.text()).toContain("LXMF");
expect(wrapper.text()).toContain("RNS");
expect(wrapper.text()).toContain("about.backend_stack");
expect(wrapper.text()).toContain("aiohttp");

View file

@ -274,7 +274,7 @@ describe("ConversationViewer reactions", () => {
});
wrapper.vm.$refs.reactionPickerPanel = panel;
wrapper.vm.onReactionPickerDragStart({ clientX: 1, clientY: 2 });
expect(typeof wrapper.vm._reactionDragCleanup).toBe("function");
expect(typeof wrapper.vm.reactionDragCleanup).toBe("function");
wrapper.unmount();
expect(() => {
document.dispatchEvent(new Event("touchmove"));