-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add setInputFiles to ElementHandle #1097
Conversation
I know that this is far from ready, just please give me feedback, if I am on the right track? It works like this:
with this html:
|
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.
Thanks, @bandorko. It looks LGTM so far 👏 Added some suggestions. We also need more tests to ensure that this works. Please also use our commit message conventions and add descriptions to your commits. You might also want to consider this issue next :)
e9ba8ba
to
a60419b
Compare
@inancgumus |
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.
Mostly LGTM 👏 Thanks for the changes. I've added some suggestions.
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.
Thank you for the contribution! 🎉 This should be quite useful for everyone when they wish to test uploading of files from their websites 🙇
I've left some comments for you to ponder over and work on if you think they are valid.
d5ce745
to
bc2a0c9
Compare
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.
Awesome work 👏 thanks for the contribution!
I'm wondering if you could add the details of a test script that you've used to test this change in the PR description for posterity reasons?
I've also left a nit-pick which i'm very happy for you to ignore.
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.
Great job @bandorko ! Thank you for your contribution.
LGTM after the existing conflicts are resolved.
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.
Great work and initiative. Thanks for your contribution 🙇
@ankur22 , @ka3de , @inancgumus : Thank you!
|
Hi @bandorko,
What difficulties are you having with the linter issues? We can help. It would be great if we could wrap this PR up for the next version 👍 |
@bandorko I think it might be ok to add |
There is an other option you may want to consider: setting default-signifies-exhaustive: true for exhaustive linter |
6e49143
@inancgumus , @ankur22 I fixed the exhaustive lint issue as you suggested. What else can I do for this PR? |
Hi @bandorko, we can merge this PR after fixing the conflicts with the |
@inancgumus |
Hi @bandorko,
That's great. Would you like to resolve the conflicts? Or we can take it over from here? WDYT?
|
As I see, it is not just a simple merge conflict, because there were refactors recently. So I will try to resolve the issues. |
I can't merge this PR due to this message:
@bandorko, can I work on your personal fork ( |
@inancgumus Yes, of course. Should I give you permission for my fork? |
@bandorko Yes, please, thanks! |
@inancgumus I already gave permission yesterday |
@bandorko I couldn't resolve the conflicts. There are conflicts to resolve when we do:
|
@bandorko I hope it's ok if we take over this and do some reorganising of the commits, including dropping some commits and other cleanups. |
support playwright parameters for setInputFiles(): string|Array<string>|Object|Array<Object>
bf4a59d
to
c479205
Compare
Co-authored-by: Ankur <ankur.agarwal@grafana.com>
c479205
to
61bd668
Compare
The base branch was changed.
works for me thanks ! 👍🏻 |
What?
Add
setInputFiles
support.Test
Here is a test script you can test this functionality with
index.html: (served by e.g.
python3 -m http.server 3080
)test.js:
Why?
Users can select input files for upload.
Checklist
Related PR(s)/Issue(s)
Closes: #384