Skip to content

Commit

Permalink
[Graph] Re-enable functional test (#44683) (#45239)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Sep 10, 2019
1 parent d37bb60 commit 32c178e
Show file tree
Hide file tree
Showing 7 changed files with 458 additions and 330 deletions.
12 changes: 6 additions & 6 deletions x-pack/legacy/plugins/graph/public/angular/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@

<button class="kuiButton kuiButton--basic kuiButton--small" ng-disabled="workspace === null ||workspace.nodes.length === 0"
tooltip="{{ ::'xpack.graph.sidebar.topMenu.removeVerticesButtonTooltip' | i18n: { defaultMessage: 'Remove vertices from workspace' } }}"
ng-click="setDetail(null);workspace.deleteSelection();">
ng-click="setDetail(null);workspace.deleteSelection();" data-test-subj="graphRemoveSelection">
<span class="kuiIcon fa-trash"></span>
</button>

Expand All @@ -350,13 +350,13 @@

<button class="kuiButton kuiButton--basic kuiButton--small" ng-disabled="workspace.nodes.length === 0" ng-if="workspace.nodes.length === 0||workspace.force === null"
tooltip="{{ ::'xpack.graph.sidebar.topMenu.runLayoutButtonTooltip' | i18n: { defaultMessage: 'Run layout' } }}"
ng-click="workspace.runLayout()">
ng-click="workspace.runLayout()" data-test-subj="graphResumeLayout">
<span class="kuiIcon fa-play"></span>
</button>

<button class="kuiButton kuiButton--basic kuiButton--small" ng-if="workspace.force !== null&&workspace.nodes.length>0"
tooltip="{{ ::'xpack.graph.sidebar.topMenu.pauseLayoutButtonTooltip' | i18n: { defaultMessage: 'Pause layout' } }}"
ng-click="workspace.stopLayout()">
ng-click="workspace.stopLayout()" data-test-subj="graphPauseLayout">
<span class="kuiIcon fa-pause"></span>
</button>
</div>
Expand All @@ -373,7 +373,7 @@
type="button" class="kuiButton kuiButton--basic kuiButton--small gphVertexSelect__button"
ng-disabled="workspace.nodes.length === 0" ng-click="setDetail(null);workspace.selectAll()"
i18n-id="xpack.graph.sidebar.selections.selectAllButtonLabel"
i18n-default-message="all"
i18n-default-message="all" data-test-subj="graphSelectAll"
></button>

<button
Expand All @@ -389,15 +389,15 @@
type="button" class="kuiButton kuiButton--basic kuiButton--small gphVertexSelect__button"
ng-disabled="workspace.nodes.length === 0" ng-click="setDetail(null);workspace.selectInvert()"
i18n-id="xpack.graph.sidebar.selections.invertSelectionButtonLabel"
i18n-default-message="invert"
i18n-default-message="invert" data-test-subj="graphInvertSelection"
></button>

<button
tooltip="{{ ::'xpack.graph.sidebar.selections.selectNeighboursButtonTooltip' | i18n: { defaultMessage: 'Select neighbours' } }}"
type="button" class="kuiButton kuiButton--basic kuiButton--small gphVertexSelect__button"
ng-disabled="workspace.selectedNodes.length === 0" ng-click="setDetail(null);workspace.selectNeighbours()"
i18n-id="xpack.graph.sidebar.selections.selectNeighboursButtonLabel"
i18n-default-message="linked"
i18n-default-message="linked" data-test-subj="graphLinkedSelection"
></button>
</div>

Expand Down
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/graph/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ app.controller('graphuiPlugin', function (
canWipeWorkspace(function () {
kbnUrl.change('/workspace/', {});
}); },
testId: 'graphNewButton',
});

// if saving is disabled using uiCapabilities, we don't want to render the save
Expand Down
169 changes: 0 additions & 169 deletions x-pack/test/functional/apps/graph/graph.js

This file was deleted.

Loading

0 comments on commit 32c178e

Please sign in to comment.