-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix test of fileupload #515
Conversation
Current coverage is
|
Could you please rebase commits into one? If you want to split your contribution then best idea is to do it in multiple pull requests. |
It's OK. If we decide to use npm v2, I remove 1acbe14 easily. |
NPM 3 is fine for me. As long as we are using |
Reviewed 5 of 5 files at r1. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file): src/test/integration/deploy/deployfromfile_po.js, line 45 [r1] (raw file): src/test/integration/stories/deploy_from_invalid_file_test.js, line 19 [r1] (raw file): You can just use: import path from 'path';
import remote from 'selenium-webdriver/remote';
import DeployFromFilePageObject from '../deploy/deployfromfile_po'; src/test/integration/stories/deploy_from_valid_file_test.js, line 22 [r1] (raw file): Comments from the review on Reviewable.io |
This is really nice work. Just few small comments. |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file): In this case I can remove usage.
In test code
src/test/integration/deploy/deployfromfile_po.js, line 45 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file): browser.driver.executeScript(makeInputVisible);
this.filePicker_.sendKeys(filePath); belongs to test and should not be executed in PO file. PO should be only for retrieving elements on page and logic related to that. It should be clear and visible in test that we are executing some script on page and sending input to field. What do you think? src/test/integration/deploy/deployfromfile_po.js, line 45 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file): On the web page we provides https://github.com/SeleniumHQ/selenium/wiki/PageObjects#summary But ex)
Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file):
Then we can call in test:
I think restore vibisility is not needed. Style will be restored anyway when page will be reloaded or state changes. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 42 [r1] (raw file): Comments from the review on Reviewable.io |
c1b4140
to
86ae875
Compare
PTAL |
Review status: all files reviewed at latest revision, 6 unresolved discussions. src/test/integration/deploy/deployfromfile_po.js, line 37 [r2] (raw file): src/test/integration/deploy/deployfromfile_po.js, line 51 [r2] (raw file): src/test/integration/stories/deploy_from_invalid_file_test.js, line 21 [r2] (raw file): Comments from the review on Reviewable.io |
Last style comments and we can merge Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from the review on Reviewable.io |
86ae875
to
199c3da
Compare
Thanks for your comment. PTAL |
Reviewed 3 of 3 files at r3. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from the review on Reviewable.io |
@bryk could you shortly check that? |
One comment for simplification. Review status: all files reviewed at latest revision, 7 unresolved discussions. .travis.yml, line 39 [r3] (raw file): See https://nodejs.org/en/blog/release/v5.0.0/ Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 7 unresolved discussions. .travis.yml, line 39 [r3] (raw file): https://docs.travis-ci.com/user/languages/javascript-with-nodejs Comments from the review on Reviewable.io |
27a7142
to
ca09d98
Compare
Reviewed 2 of 2 files at r4. Comments from the review on Reviewable.io |
Tests fail. Can you fix them? |
Yes. In my local pc tests success. but in travis test fail because test fail to delete created RC. |
Can you fix the test? |
And which test does not delete created RCs? |
I cannot find the solution now.
https://travis-ci.org/kubernetes/dashboard/builds/116599998
I tried to test in same version; node, npm, browser and dependencies library in local PC. And I reverted source which succeeded 3 days ago but tests has same error in travis. Do you have any idea? |
I believe this is related to #546. There had to be some minor update of some dependency in our project. Since we use This xpath is now not correct. Anyway as discussed in #508 we should not use xpath and refactor the code that uses it. There is no |
I see. I reproduced error in local PC. Thanks for your help : ) |
* Add FileDetector and use npm3 * Avoid error: Element is not currently visible and so may not be interacted with in Firefox
ca09d98
to
4087dbe
Compare
Thanks for fixing this issue! Will merge when travis gets green. Reviewed 2 of 2 files at r5. Comments from the review on Reviewable.io |
… not scrolling. (kubernetes#515) Co-authored-by: Sanil Kumar <skdsanil@gmail.com>
I added FileDetector setting to test file upload in saucelabs.
FileDetector locates selenium-webdriver/remote/index.js.
But the file path is different between npm2 and npm3.
https://docs.npmjs.com/how-npm-works/npm3-nondet
npm in travis is v2.
If we want to use v3 in travis, we need to install npm3.
.travis.yaml
Which version is better?
Do you have a good idea to support both versions?
@bryk @floreks @maciaszczykm
This change is