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

test(drag): more tests for drag and drop #4508

Merged
merged 2 commits into from
Nov 25, 2020

Conversation

JoelEinbinder
Copy link
Contributor

@JoelEinbinder JoelEinbinder commented Nov 20, 2020

Adds a bunch more drag and drop tests. All set to fixme right now, but #4506 will turn on four for firefox. Chromium and Webkit patches are larger, but coming soon. The golden event orders here were tested against mostly working versions of patches in all browsers.

await page.mouse.down();
await page.hover('#target');
await page.mouse.up();
expect(await page.$eval('#target', target => target.contains(document.querySelector('#source')))).toBe(true); // could not find source in target
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "could not find source in target" mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use to have error messages after the error as a string, which was helpful when the test failed. When we moved to the expect library, these got removed. But the error reporter shows the line that failed now, so I just put a message in a comment after the line.

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