Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: add Mouse test util + update tests #975

Merged
merged 7 commits into from
Feb 5, 2025

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)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants