[Monitoring] Summary Status component data-test-subject wrap entire label/value container (#19289)

* [Monitoring] Summary Status component data-test-subject wrap entire label/value container

* update functional tests
This commit is contained in:
Tim Sullivan 2018-05-23 10:22:54 -07:00 committed by GitHub
parent e6adeae40c
commit 77cfc94441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 37 deletions

View file

@ -14,8 +14,9 @@ const wrapChild = ({ label, value, dataTestSubj }, index) => (
key={`summary-status-item-${index}`}
grow={false}
className="monitoring-summary-status__eui-content"
data-test-subj={dataTestSubj}
>
{label}: <strong data-test-subj={dataTestSubj}>{value}</strong>
{label}: <strong>{value}</strong>
</EuiFlexItem>
);

View file

@ -38,7 +38,7 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it('green status index with full shard allocation', async () => {
it('should have an index summary with green status index with full shard allocation', async () => {
await indicesList.clickRowByName('avocado-tweets-2017.10.02');
expect(await indexDetail.getSummary()).to.eql({
@ -51,7 +51,7 @@ export default function ({ getService, getPageObjects }) {
});
});
it('green status index with single relocating shard', async () => {
it('should have an index summary with green status index with single relocating shard', async () => {
await indicesList.clickRowByName('relocation_test');
expect(await indexDetail.getSummary()).to.eql({
@ -64,7 +64,7 @@ export default function ({ getService, getPageObjects }) {
});
});
it('yellow status index with single unallocated shard', async () => {
it('should have an index summary with yellow status index with single unallocated shard', async () => {
await indicesList.clickRowByName('phone-home');
expect(await indexDetail.getSummary()).to.eql({
@ -96,7 +96,7 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it.skip('shows NA', async () => {
it.skip('should have an index summary with NA for deleted index', async () => {
await indicesList.setFilter('deleted');
await indicesList.clickRowByName('many-0001_clruksahirti');

View file

@ -30,20 +30,20 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it('Elasticsearch Cluster Summary Status shows correct info', async () => {
it('should have an Elasticsearch cluster summary with correct info', async () => {
expect(await esClusterSummaryStatus.getContent()).to.eql({
nodesCount: '1',
indicesCount: '19',
memory: '267.7 MB / 676.8 MB',
totalShards: '46',
unassignedShards: '23',
documentCount: '4,535',
dataSize: '8.6 MB',
nodesCount: 'Nodes: 1',
indicesCount: 'Indices: 19',
memory: 'Memory: 267.7 MB / 676.8 MB',
totalShards: 'Total Shards: 46',
unassignedShards: 'Unassigned Shards: 23',
documentCount: 'Documents: 4,535',
dataSize: 'Data: 8.6 MB',
health: 'Health: red',
});
});
it('Indices Table shows correct rows with default sorting', async () => {
it('should have an indices table with correct rows with default sorting', async () => {
const rows = await indicesList.getRows();
expect(rows.length).to.be(20);
@ -84,7 +84,7 @@ export default function ({ getService, getPageObjects }) {
});
});
it('Indices Table shows correct rows after sorting by Search Rate Desc', async () => {
it('should show indices table with correct rows after sorting by Search Rate Desc', async () => {
await indicesList.clickSearchCol();
await indicesList.clickSearchCol();
@ -128,14 +128,14 @@ export default function ({ getService, getPageObjects }) {
});
});
it('filters for specific indices', async () => {
it('should filter for specific indices', async () => {
await indicesList.setFilter('000');
const rows = await indicesList.getRows();
expect(rows.length).to.be(9);
await indicesList.clearFilter();
});
it('filters for non-existent index', async () => {
it('should filter for non-existent index', async () => {
await indicesList.setFilter('foobar');
await indicesList.assertNoData();
await indicesList.clearFilter();

View file

@ -36,7 +36,7 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.monitoring.clickBreadcrumb('breadcrumbEsNodes'); // return back for next test
});
it('master node with 20 indices and 38 shards', async () => {
it('should show node summary of master node with 20 indices and 38 shards', async () => {
await nodesList.clickRowByResolver('jUT5KdxfRbORSCWkb5zjmA');
expect(await nodeDetail.getSummary()).to.eql({
@ -52,7 +52,7 @@ export default function ({ getService, getPageObjects }) {
});
});
it('data node with 4 indices and 4 shards', async () => {
it('should show node summary of data node with 4 indices and 4 shards', async () => {
await nodesList.clickRowByResolver('bwQWH-7IQY-mFPpfoaoFXQ');
expect(await nodeDetail.getSummary()).to.eql({
@ -87,7 +87,7 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it('shows NA', async () => {
it('should show node summary of NA for offline node', async () => {
await nodesList.clickRowByResolver('1jxg5T33TWub-jJL4qP0Wg');
expect(await nodeDetail.getSummary()).to.eql({

View file

@ -30,18 +30,17 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it('Elasticsearch Cluster Summary Status shows correct info', async () => {
it('should have an Elasticsearch Cluster Summary Status with correct info', async () => {
expect(await esClusterSummaryStatus.getContent()).to.eql({
nodesCount: '3',
indicesCount: '20',
memory: '575.3 MB / 2.0 GB',
totalShards: '80',
unassignedShards: '5',
documentCount: '25,927',
dataSize: '101.6 MB',
nodesCount: 'Nodes: 3',
indicesCount: 'Indices: 20',
memory: 'Memory: 575.3 MB / 2.0 GB',
totalShards: 'Total Shards: 80',
unassignedShards: 'Unassigned Shards: 5',
documentCount: 'Documents: 25,927',
dataSize: 'Data: 101.6 MB',
health: 'Health: yellow',
});
});
});
}

View file

@ -30,15 +30,15 @@ export default function ({ getService, getPageObjects }) {
await tearDown();
});
it('Cluster Summary Status shows correct info', async () => {
it('should have an Elasticsearch Cluster Summary Status with correct info', async () => {
expect(await esClusterSummaryStatus.getContent()).to.eql({
nodesCount: '3',
indicesCount: '20',
memory: '575.3 MB / 2.0 GB',
totalShards: '80',
unassignedShards: '5',
documentCount: '25,927',
dataSize: '101.6 MB',
nodesCount: 'Nodes: 3',
indicesCount: 'Indices: 20',
memory: 'Memory: 575.3 MB / 2.0 GB',
totalShards: 'Total Shards: 80',
unassignedShards: 'Unassigned Shards: 5',
documentCount: 'Documents: 25,927',
dataSize: 'Data: 101.6 MB',
health: 'Health: yellow',
});
});