Cleanup
Build Test / Build and Test (push) Failing after 6m1s
CI / lint (push) Failing after 1m27s
CI / build-frontend (push) Failing after 1m30s
CI / test-backend (push) Successful in 1m17s
CI / test-lang (push) Failing after 1m15s
Build and Publish Docker Image / build (push) Failing after 4m28s
Build and Publish Docker Image / build-dev (push) Failing after 5m38s
Security Scans / scan (push) Successful in 2m12s
Tests / test (push) Failing after 1m17s

This commit is contained in:
Sudo-Ivan
2026-02-17 17:59:46 -06:00
parent df0a7e1c9d
commit 39b8d5fef8
14 changed files with 157 additions and 138 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ import DropDownMenu from "../../meshchatx/src/frontend/components/DropDownMenu.v
function mountDropDown(slots = {}) {
return mount(DropDownMenu, {
slots: {
button: "<button type=\"button\">Menu</button>",
items: "<div class=\"menu-item\">Item 1</div>",
button: '<button type="button">Menu</button>',
items: '<div class="menu-item">Item 1</div>',
...slots,
},
global: {
@@ -38,7 +38,7 @@ describe("DropDownMenu UI", () => {
});
it("renders items slot when open", async () => {
const wrapper = mountDropDown({ items: "<div class=\"custom-item\">Custom</div>" });
const wrapper = mountDropDown({ items: '<div class="custom-item">Custom</div>' });
await wrapper.find("button").trigger("click");
expect(wrapper.find(".custom-item").exists()).toBe(true);
expect(wrapper.text()).toContain("Custom");