Skip to content

Commit

Permalink
test: Update datetime picker test assertions
Browse files Browse the repository at this point in the history
Co-Authored-By: Myles Scolnick <myles@marimo.io>
  • Loading branch information
devin-ai-integration[bot] and mscolnick committed Dec 20, 2024
1 parent 5f90a5c commit b62f4c8
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ describe("DateTimePickerPlugin", () => {
functions: {},
};
const { container } = render(plugin.render(props));

// For debugging, log the rendered HTML
console.log('Rendered HTML:', container.innerHTML);

// Check if the component renders at all
expect(container.innerHTML).not.toBe("");
// Check for the specific element
const dateTimeElement = container.querySelector("marimo-datetime");
expect(dateTimeElement).not.toBeNull();
// Check for the date picker group
const datePicker = container.querySelector('[class*="group"]');
expect(datePicker).not.toBeNull();
});
});

0 comments on commit b62f4c8

Please sign in to comment.