-
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
Added integration test for "deploy not existing image" user story #420
Conversation
723ffa7
to
325f300
Compare
it('should go to details page', () => { | ||
// when | ||
replicationControllersPage.cardDetailsPageLink.click(); | ||
browser.driver.sleep(3000); |
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.
Is there a better way to wait for page to fully load before going further with the test?
browser.waitForAngular doesn't really work.
96a042c
to
afc54f7
Compare
Local Is there a better way to wait for page to be fully loaded then |
d63adc3
to
375ad4d
Compare
@f-higashi @maciaszczykm Can you review? |
This still does not pass on PR travis without sauce labs :) I'm looking for a solution. |
375ad4d
to
eda7380
Compare
Review status: 0 of 12 files reviewed at latest revision, 5 unresolved discussions. src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html, line 199 [r2] (raw file): src/app/frontend/replicationcontrollerlist/replicationcontrollercardmenu.html, line 34 [r2] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 56 [r2] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 203 [r2] (raw file): Comments from the review on Reviewable.io |
Current coverage is
|
Review status: 0 of 12 files reviewed at latest revision, 5 unresolved discussions. src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html, line 199 [r2] (raw file): src/app/frontend/replicationcontrollerlist/replicationcontrollercardmenu.html, line 34 [r2] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 56 [r2] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 203 [r2] (raw file): Comments from the review on Reviewable.io |
@bryk Ok so I know why this travis have failed. :) I've changed browser used by protractor to |
5da5d1f
to
f3d8972
Compare
Review status: 0 of 8 files reviewed at latest revision, 4 unresolved discussions. src/test/integration/stories/deploy_not_existing_img_test.js, line 145 [r1] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 56 [r2] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 203 [r2] (raw file): src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail.html, line 199 [r2] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 8 files reviewed at latest revision, 3 unresolved discussions. src/test/integration/stories/deploy_not_existing_img_test.js, line 145 [r1] (raw file): src/test/integration/stories/deploy_not_existing_img_test.js, line 203 [r2] (raw file): Comments from the review on Reviewable.io |
In my environment, when browser is chrome, tests fail. When browser is Firefox, tests success.
Test code looks good. |
68dcff2
to
db03a7b
Compare
I've had the same problem with local tests using firefox that's why I've changed protractor to use chrome. That may be issue with firefox driver as it didn't want to click elements with |
@bryk After all even PTAL |
1f3cce0
to
6576fe7
Compare
6576fe7
to
737ec83
Compare
Does this still fail on sauce? I see: https://saucelabs.com/beta/tests/43ce4e134b6e425189ca8f7c14f410bd/commands Reviewed 3 of 11 files at r1, 1 of 2 files at r3, 2 of 8 files at r4, 2 of 2 files at r6. src/test/integration/stories/deploy_not_existing_img_test.js, line 145 [r1] (raw file): Comments from the review on Reviewable.io |
737ec83
to
5bb48e6
Compare
After removing all Review status: 7 of 8 files reviewed at latest revision, all discussions resolved. src/test/integration/stories/deploy_not_existing_img_test.js, line 145 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 7 of 8 files reviewed at latest revision, 1 unresolved discussion. src/test/integration/stories/deploy_not_existing_img_test.js, line 144 [r7] (raw file): Comments from the review on Reviewable.io |
PTAL |
Sorry for delay, merging :) Reviewed 1 of 1 files at r7. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/test/integration/stories/deploy_not_existing_img_test.js, line 144 [r7] (raw file): Comments from the review on Reviewable.io |
Added integration test for "deploy not existing image" user story
Removed occurences of Fake Storage / Fake driver from the delfin UI
Related to #346.
Tested user story contains following steps:
I've created new folder
stories
for user story tests. Is it ok?