Skip to content

Commit

Permalink
fixed the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Feb 4, 2021
1 parent 166a884 commit af89056
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions x-pack/test/functional/apps/maps/layer_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export default function ({ getPageObjects }) {
});

describe('EMSFileSource with missing EMS id', () => {
const MISSING_EMS_ID = 'idThatDoesNotExitForEMSFileSource';
const MISSING_EMS_ID = 'idThatDoesNotExistForEMSFileSource';
const LAYER_NAME = 'EMS_vector_shapes';

it('should diplay error message in layer panel', async () => {
const errorMsg = await PageObjects.maps.getLayerErrorText(LAYER_NAME);
expect(errorMsg).to.equal(
`Unable to find EMS vector shapes for id: ${MISSING_EMS_ID}. Kibana is unable to access Elastic Maps Service. Contact your systemadministrator.`
`Unable to find EMS vector shapes for id: ${MISSING_EMS_ID}. Kibana is unable to access Elastic Maps Service. Contact your system administrator.`
);
});

Expand All @@ -83,13 +83,13 @@ export default function ({ getPageObjects }) {
});

describe('EMSTMSSource with missing EMS id', () => {
const MISSING_EMS_ID = 'idThatDoesNotExitForEMSTile';
const MISSING_EMS_ID = 'idThatDoesNotExistForEMSTile';
const LAYER_NAME = 'EMS_tiles';

it('should diplay error message in layer panel', async () => {
const errorMsg = await PageObjects.maps.getLayerErrorText(LAYER_NAME);
expect(errorMsg).to.equal(
`Unable to find EMS tile configuration for id: ${MISSING_EMS_ID}. Kibana is unable to access Elastic Maps Service. Contact your systemadministrator.`
`Unable to find EMS tile configuration for id: ${MISSING_EMS_ID}. Kibana is unable to access Elastic Maps Service. Contact your system administrator.`
);
});

Expand All @@ -101,7 +101,7 @@ export default function ({ getPageObjects }) {
});

describe('KibanaRegionmapSource with missing region map configuration', () => {
const MISSING_REGION_NAME = 'nameThatDoesNotExitForKibanaRegionmapSource';
const MISSING_REGION_NAME = 'nameThatDoesNotExistForKibanaRegionmapSource';
const LAYER_NAME = 'Custom_vector_shapes';

it('should diplay error message in layer panel', async () => {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/maps/sample_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ({ getPageObjects, getService, updateBaselines }) {
'ecommerce_map',
updateBaselines
);
expect(percentDifference).to.be.lessThan(0.06);
expect(percentDifference).to.be.lessThan(0.05);
});
});

Expand Down

0 comments on commit af89056

Please sign in to comment.