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

Fixed test flakiness on application deploy in IE #508

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

floreks
Copy link
Member

@floreks floreks commented Mar 8, 2016

Fixes #494

I've changed some button queries to use xpath and moved expect block to be executed after click promise is resolved.

Review on Reviewable

@floreks floreks added kind/bug Categorizes issue or PR as related to a bug. priority/P0 labels Mar 8, 2016
@bryk
Copy link
Contributor

bryk commented Mar 8, 2016

Review status: 0 of 4 files reviewed at latest revision, 1 unresolved discussion.


src/test/integration/deploy/deploy_po.js, line 17 [r1] (raw file):
Protractor style guide says to never use xpaths to locate elements: https://github.com/angular/protractor/blob/master/docs/style-guide.md

Can you maybe use class/model/binding?


Comments from the review on Reviewable.io

@floreks
Copy link
Member Author

floreks commented Mar 8, 2016

Review status: 0 of 4 files reviewed at latest revision, 1 unresolved discussion.


src/test/integration/deploy/deploy_po.js, line 17 [r1] (raw file):
I've had a good feeling that we shouldn't use xpaths ;) Sure I'll change that. In other PR I'll refactor rest xpaths.


Comments from the review on Reviewable.io

@floreks floreks force-pushed the integration-text-fix branch from 8455729 to 3e6dd8d Compare March 8, 2016 15:25
@codecov-io
Copy link

Current coverage is 85.99%

Merging #508 into master will increase coverage by +2.40% as of 9eee1b0

@@            master    #508   diff @@
======================================
  Files           84      95    +11
  Stmts          695     814   +119
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit            581     700   +119
  Partial          0       0       
  Missed         114     114       

Review entire Coverage Diff as of 9eee1b0

Powered by Codecov. Updated on successful CI builds.

@floreks
Copy link
Member Author

floreks commented Mar 8, 2016

PTAL

@maciaszczykm
Copy link
Member

:lgtm:


Reviewed 2 of 4 files at r1, 2 of 3 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from the review on Reviewable.io

@floreks
Copy link
Member Author

floreks commented Mar 9, 2016

Review status: all files reviewed at latest revision, 1 unresolved discussion.


src/test/integration/deploy/deploy_po.js, line 17 [r1] (raw file):
Done.


Comments from the review on Reviewable.io

@floreks floreks force-pushed the integration-text-fix branch from 3e6dd8d to c9b9c06 Compare March 9, 2016 08:20
@maciaszczykm
Copy link
Member

Reviewed 1 of 4 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from the review on Reviewable.io

floreks pushed a commit that referenced this pull request Mar 9, 2016
Fixed test flakiness on application deploy in IE
@floreks floreks merged commit 01f1f58 into kubernetes:master Mar 9, 2016
@floreks floreks deleted the integration-text-fix branch March 9, 2016 08:40
@floreks floreks restored the integration-text-fix branch March 9, 2016 09:05
@@ -45,7 +45,8 @@ <h3 class="md-headline kd-deploy-form-title">Deploy a Containerized App</h3>
</deploy-from-file>
</div>

<md-button class="md-raised md-primary" type="submit" ng-disabled="ctrl.isDeployDisabled()">
<md-button id="kd-deploy-btn" class="md-raised md-primary" type="submit"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you convert the ID to a class? It is a good practise to never use IDs, unless you really really need them :) With that practise in mind you'll avoid problems when someone adds second deploy button here (which has pretty generic meaning/name, yea?)

Sorry for nagging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration tests fail in travis although they pass in dev. environment
5 participants