Skip to content

fix(cdk/testing): Make harnesses click on the center of the element by default - #19212

Merged
jelbourn merged 4 commits into
angular:masterfrom
mmalerba:harness-click
May 1, 2020
Merged

jelbourn merged 4 commits into
angular:masterfrom
mmalerba:harness-click

Conversation

@mmalerba

@mmalerba mmalerba commented Apr 29, 2020 •

Copy link
Copy Markdown
Contributor

This is Protractor's default behavior. Prior to this PR we had been
clicking the top-left corner, but that didn't trigger the click event in
Protractor.

fixes #19002

@mmalerba mmalerba added P2 The issue is important to a large percentage of users, with a workaround regression This issue is related to a regression labels Apr 29, 2020
@mmalerba
mmalerba requested a review from jelbourn April 29, 2020 21:40
@mmalerba
mmalerba requested a review from devversion as a code owner April 29, 2020 21:40
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 29, 2020
@jelbourn

jelbourn commented Apr 29, 2020 •

Copy link
Copy Markdown
Contributor

Could you also expand the commit message with more context about the fix?

@jelbourn jelbourn added the target: patch This PR is targeted for the next patch release label Apr 30, 2020
…y default

This is Protractor's default behavior. Prior to this PR we had been
clicking the top-left corner, but that didn't trigger the click event in
Protractor.
@mmalerba mmalerba changed the title fix(cdk/testing): Make harnesses click on relative coord 1,1 - not 0,0 Apr 30, 2020

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. One optional nit and API goldens seem to fail.

@mmalerba
mmalerba requested a review from a team April 30, 2020 21:04
@mmalerba

Copy link
Copy Markdown
Contributor Author

Yeah this is technically breaking, since I'm not allowing you to pass only relativeX anymore, you must pass both or none

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Apr 30, 2020
@jelbourn
jelbourn merged commit a9ca95e into angular:master May 1, 2020
jelbourn pushed a commit that referenced this pull request May 1, 2020
…y default (#19212)

* fix(cdk/testing): Make harnesses click on the center of the element by default

This is Protractor's default behavior. Prior to this PR we had been
clicking the top-left corner, but that didn't trigger the click event in
Protractor.

* address feedback

* clarifying comment

* update api goldens
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround regression This issue is related to a regression target: patch This PR is targeted for the next patch release

5 participants