-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into kbn-74911-remove-…
…legacy-mode
- Loading branch information
Showing
6 changed files
with
76 additions
and
33 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/legacy/ui/public/documentation_links/documentation_links.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/* | ||
WARNING: The links in this file are validated during the docs build. This is accomplished with some regex magic that | ||
looks for these particular constants. As a result, we should not add new constants or change the existing ones. | ||
If you absolutely must make a change, talk to Clinton Gormley first so he can update his Perl scripts. | ||
*/ | ||
export const DOC_LINK_VERSION = 'stub'; | ||
export const ELASTIC_WEBSITE_URL = 'stub'; | ||
|
||
export const documentationLinks = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
x-pack/plugins/apm/e2e/cypress/support/step_definitions/rum/client_metrics_helper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { DEFAULT_TIMEOUT } from './rum_dashboard'; | ||
|
||
/** | ||
* Verifies the behavior of the client metrics component | ||
* @param metrics array of three elements | ||
* @param checkTitleStatus if it's needed to check title elements | ||
*/ | ||
export function verifyClientMetrics( | ||
metrics: string[], | ||
checkTitleStatus: boolean | ||
) { | ||
const clientMetricsSelector = '[data-cy=client-metrics] .euiStat__title'; | ||
|
||
// wait for all loading to finish | ||
cy.get('kbnLoadingIndicator').should('not.be.visible'); | ||
|
||
if (checkTitleStatus) { | ||
cy.get('.euiStat__title', { timeout: DEFAULT_TIMEOUT }).should( | ||
'be.visible' | ||
); | ||
cy.get('.euiSelect-isLoading').should('not.be.visible'); | ||
} | ||
|
||
cy.get('.euiStat__title-isLoading').should('not.be.visible'); | ||
|
||
cy.get(clientMetricsSelector).eq(0).should('have.text', metrics[0]); | ||
|
||
cy.get(clientMetricsSelector).eq(1).should('have.text', metrics[1]); | ||
|
||
cy.get(clientMetricsSelector).eq(2).should('have.text', metrics[2]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters