Skip to content

Commit

Permalink
[status] update functional tests to use testSubject selector
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Jun 15, 2016
1 parent e6a8da0 commit ef9eba5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/plugins/status_page/public/status_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>
</div>
</div>

<div class="row status_status_wrapper">
<div class="row status_statuses_wrapper">
<h3>Status Breakdown</h3>

<div ng-if="!ui.statuses && ui.loading" class="loading_statuses">
Expand All @@ -26,7 +26,7 @@ <h4 ng-if="!ui.statuses && !ui.loading" class="missing_statuses">
No status information available
</h4>

<table class="status_status_breakdown" ng-if="ui.statuses.services">
<table class="status_statuses_breakdown" ng-if="ui.statuses.services">
<tr class="row">
<th class="col-xs-2">Service</th>
<th class="col-xs-8">Status</th>
Expand All @@ -43,7 +43,7 @@ <h4 ng-if="!ui.statuses && !ui.loading" class="missing_statuses">
</tr>
</table>

<table class="status_status_breakdown" ng-if="ui.statuses.plugins">
<table class="status_statuses_breakdown" data-test-subj="pluginStatusBreakdown" ng-if="ui.statuses.plugins">
<tr class="row">
<th class="col-xs-2">Plugin</th>
<th class="col-xs-2">Version</th>
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/status_page/public/status_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}

// status status table section
.status_status_wrapper {
.status_statuses_wrapper {
margin-top: 25px;
margin-left: -5px;
margin-right: -5px;
Expand All @@ -78,7 +78,7 @@
text-align: center;
}

.status_status_breakdown {
.status_statuses_breakdown {
margin-left: 0;
margin-right: 0;

Expand Down Expand Up @@ -156,7 +156,7 @@
content: @icon;
}

.status_status_wrapper {
.status_statuses_wrapper {
border-top-color: @color;
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/functional/status_page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ bdd.describe('status page', function () {
var self = this;

return common.tryForTime(6000, function () {
return self.remote
.findByCssSelector('.plugin_status_breakdown')
return common.findTestSubject('pluginStatusBreakdown')
.getVisibleText()
.then(function (text) {
common.saveScreenshot('Status');
Expand Down

0 comments on commit ef9eba5

Please sign in to comment.