diff --git a/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts b/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts index 1b477644feca0..f5d695b8f165c 100644 --- a/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts +++ b/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts @@ -700,9 +700,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid const linkURL = await linkButton.getAttribute('href'); - expect(linkURL).to.be( - 'https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-settings-limit.html' - ); + expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true); }); it('should display increase field limit as a possible mitigation for non integration', async () => { diff --git a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts index 59d58a3e83151..1fe53b2aa7ce7 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts @@ -701,9 +701,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const linkURL = await linkButton.getAttribute('href'); - expect(linkURL).to.be( - 'https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-settings-limit.html' - ); + expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true); }); it('should display increase field limit as a possible mitigation for non integration', async () => {