mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-05-25 20:54:01 +00:00
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
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user