-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tests: Apply style variations using labels #39725
Conversation
We should probably fix the click area issue as well 😄 But we can keep label improvement from this PR. |
The screenshot is a bit weird, it looks like the "Aa" and the dots are not centered as they should be. Maybe a missing height: 100% somewhere |
@youknowriad, maybe on P.S. I've to log out, but I can look into the height issue tomorrow. |
I've got a PR here that fixes the underlying issue with the previews - #39737. I'm not sure if the tests need to be changed, it looks like they caught a bug here. |
Excellent work, @talldan. I think selecting variation by label change still can be helpful. I will update the PR. |
`//*[@role="button"][@aria-label="${ title }"]` | ||
); | ||
await variation.focus(); | ||
await page.keyboard.press( 'Enter' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why focus and press instead of click?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the height issue #39737.
- I will revert this to click now that it's resolved.
- Update PR description.
14ab530
to
bb41ca5
Compare
Size Change: 0 B Total Size: 1.21 MB ℹ️ View Unchanged
|
What?
Updates style variation select helper to use variation labels.
Why?
It matches how a user will interact with the panel.
How?
applyVariation
to use variation label, now that they're supported - Add labels to the global styles variations #39322.Testing Instructions
Screenshots or screencast
CleanShot.2022-03-24.at.19.38.57.mp4