Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

Description

This PR adds a Mouse test util to make it easier to click on an element. When using the sendMouse helper from playwright we have to pass in the location coordinates. I have made a wrapper that takes an element and finds the center of the element instead.

This is how it currently works:

const mouse = new UUITestMouse();
await mouse.leftClick(someElement);
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-975.westeurope.azurestaticapps.net

Copy link
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@nielslyngsoe nielslyngsoe merged commit fd7dfd5 into v1/contrib Feb 5, 2025
10 of 11 checks passed
@nielslyngsoe nielslyngsoe deleted the v1/chore/test-mouse-util branch February 5, 2025 11:18
@iOvergaard iOvergaard added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants