Skip to content

Conversation

@Bayheck
Copy link
Contributor

@Bayheck Bayheck commented May 7, 2024

Purpose

getBoundingClientRect does not return border boxes of each mutiline element.

Approach

Replace getBoundingClientRect with getClientRects

References

DevExpress/testcafe#8183

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

@Bayheck Bayheck changed the title testing positioning to multiline elements May 10, 2024
@Bayheck Bayheck changed the title positioning to multiline elements Positioning to multiline elements May 10, 2024
@Bayheck Bayheck marked this pull request as ready for review May 10, 2024 09:37
Copy link
Collaborator

@Aleksey28 Aleksey28 left a comment

Choose a reason for hiding this comment

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

Great, look at my comment please

@Bayheck Bayheck merged commit fe16afb into DevExpress:master May 29, 2024
@github-actions
Copy link

Release v31.7.2 addresses this.

Aleksey28 pushed a commit to DevExpress/testcafe that referenced this pull request Jun 3, 2024
<!--
Thank you for your contribution.

Before making a PR, please read our contributing guidelines at

https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution

We recommend creating a *draft* PR, so that you can mark it as 'ready
for review' when you are done.
-->

## Purpose
Testcafe did not click properly on multiline elements.

## Approach
In testcafe-hammerhead replaced getBoundingClientRect with
getClientRects.

Fix Edge workflow tests
#8189

## References
#8179
#8148

Hammerhead PR:
DevExpress/testcafe-hammerhead#3004


## Pre-Merge TODO
- [x] Write tests for your proposed changes
- [ ] Make sure that existing tests do not fail

---------

Co-authored-by: Bayheck <[email protected]>
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.

3 participants