Skip to content

Commit

Permalink
[Stack Monitoring] add test subject to tab (#114319) (#114560)
Browse files Browse the repository at this point in the history
* pass test subject to advanced link and change name in angular version to be generic

* change name in functional test

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Sandra G <[email protected]>
  • Loading branch information
kibanamachine and neptunian authored Oct 11, 2021
1 parent 8f701bb commit 26e7670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const ItemTemplate: React.FC<ItemTemplateProps> = (props) => {
},
{
id: 'advanced',
testSubj: 'esItemDetailAdvancedLink',
label: i18n.translate('xpack.monitoring.esItemNavigation.advancedLinkText', {
defaultMessage: 'Advanced',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1 class="euiTitle euiTitle--xsmall">{{pageTitle || monitoringMain.instance}}</
</a>
<a
ng-if="monitoringMain.instance && (monitoringMain.name === 'nodes' || monitoringMain.name === 'indices')"
data-test-subj="esNodeDetailAdvancedLink"
data-test-subj="esItemDetailAdvancedLink"
kbn-href="#/elasticsearch/{{ monitoringMain.name }}/{{ monitoringMain.resolver }}/advanced"
class="euiTab"
ng-class="{'euiTab-isSelected': monitoringMain.page === 'advanced'}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function MonitoringElasticsearchNodeDetailProvider({ getService }) {

return new (class ElasticsearchNodeDetail {
async clickAdvanced() {
return testSubjects.click('esNodeDetailAdvancedLink');
return testSubjects.click('esItemDetailAdvancedLink');
}

async getSummary() {
Expand Down

0 comments on commit 26e7670

Please sign in to comment.