Skip to content

Commit 1215f60

Browse files
committed
Fix tests after deps update
1 parent 19442e4 commit 1215f60

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/app/frontend/deploy/deploy.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ <h3 class="md-headline kd-deploy-form-title">Deploy a Containerized App</h3>
4545
</deploy-from-file>
4646
</div>
4747

48-
<md-button class="md-raised md-primary kd-deploy-btn" type="submit"
48+
<md-button class="md-raised md-primary kd-deploy-submit-button" type="submit"
4949
ng-disabled="ctrl.isDeployDisabled()">
5050
Deploy
5151
</md-button>
52-
<md-button class="md-raised" ng-click="ctrl.cancel()">Cancel</md-button>
53-
52+
<md-button class="md-raised kd-deploy-cancel-button" ng-click="ctrl.cancel()">Cancel</md-button>
5453
</form>
5554
</md-whiteframe>
5655
</div>

src/test/integration/deploy/deploy_po.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
export default class DeployPageObject {
1616
constructor() {
17-
this.deployButtonQuery = by.css('.kd-deploy-btn');
17+
this.deployButtonQuery = by.css('.kd-deploy-submit-button');
1818
this.deployButton = element(this.deployButtonQuery);
1919

2020
this.appNameFieldQuery = by.model('ctrl.name');

src/test/integration/deploy/deployfromfile_po.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export default class DeployFromFilePageObject {
1717
this.deployFromFileRadioButtonQuery = by.xpath('//md-radio-button[@value="File"]');
1818
this.deployFromFileRadioButton = element(this.deployFromFileRadioButtonQuery);
1919

20-
this.deployButtonQuery = by.xpath('//button[@type="submit"]');
20+
this.deployButtonQuery = by.css('.kd-deploy-submit-button');
2121
this.deployButton = element(this.deployButtonQuery);
2222

23-
this.cancelButtonQuery = by.xpath('//button[@ng-click="ctrl.cancel()"]');
23+
this.cancelButtonQuery = by.css('.kd-deploy-cancel-button');
2424
this.cancelButton = element(this.cancelButtonQuery);
2525

2626
this.inputContainerQuery = by.tagName('md-input-container');

src/test/integration/deploy/deployfromfile_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('Deploy from file view', () => {
4444
page.cancelButton.click();
4545

4646
// then
47-
expect(zeroState.deployButton.isPresent()).toBeTruthy();
47+
expect(zeroState.deployButton.isPresent()).toBe(true);
4848
});
4949

5050
});

0 commit comments

Comments
 (0)