Skip to content

Commit

Permalink
update open test
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrickert committed Nov 25, 2024
1 parent 30d071e commit c3bbc7f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ test("should open flyout", async ({ mount, page }) => {
// ARRANGE
const component = await mount(<OnyxDatePicker label="Test label" style="width: 12rem;" />);
const datepicker = component.getByLabel("Test label");
const box = (await datepicker.boundingBox())!;

// ACT
await page.mouse.click(box.x + box.width - 8, box.y + box.height - 8);
await datepicker.evaluate((input) => (input as HTMLInputElement).showPicker());

// ASSERT
await expect(page).toHaveScreenshot("open.png");
Expand Down

0 comments on commit c3bbc7f

Please sign in to comment.