mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ML] Functional tests - skip color assertions in cloud (#111695)
This PR skips color assertions during functional tests in cloud environments.
This commit is contained in:
parent
930bc9c1e3
commit
7f441b49b3
2 changed files with 11 additions and 0 deletions
|
@ -241,6 +241,11 @@ export function MachineLearningCommonUIProvider({
|
|||
channelTolerance = 10,
|
||||
valueTolerance = 10
|
||||
) {
|
||||
if (process.env.TEST_CLOUD) {
|
||||
log.warning('Not running color assertions in cloud');
|
||||
return;
|
||||
}
|
||||
|
||||
await retry.tryForTime(30 * 1000, async () => {
|
||||
await testSubjects.existOrFail(dataTestSubj);
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ export type HistogramCharts = Array<{
|
|||
export function TransformWizardProvider({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const aceEditor = getService('aceEditor');
|
||||
const canvasElement = getService('canvasElement');
|
||||
const log = getService('log');
|
||||
const testSubjects = getService('testSubjects');
|
||||
const comboBox = getService('comboBox');
|
||||
const retry = getService('retry');
|
||||
|
@ -241,6 +242,11 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
|
|||
},
|
||||
|
||||
async assertIndexPreviewHistogramCharts(expectedHistogramCharts: HistogramCharts) {
|
||||
if (process.env.TEST_CLOUD) {
|
||||
log.warning('Not running color assertions in cloud');
|
||||
return;
|
||||
}
|
||||
|
||||
// For each chart, get the content of each header cell and assert
|
||||
// the legend text and column id and if the chart should be present or not.
|
||||
await retry.tryForTime(5000, async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue