mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ML] AIOps: Update assertion for the change point detection tests (#164404)
## Summary Closes https://github.com/elastic/kibana/issues/158851 Updates assertion for the split field test.
This commit is contained in:
parent
e042882729
commit
546a3cb1af
1 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
// aiops lives in the ML UI so we need some related services.
|
||||
const ml = getService('ml');
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/158851
|
||||
describe.skip('change point detection', async function () {
|
||||
describe('change point detection', async function () {
|
||||
before(async () => {
|
||||
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
await ml.testResources.createIndexPatternIfNeeded('ft_ecommerce', 'order_date');
|
||||
|
@ -66,7 +65,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await aiops.changePointDetectionPage.selectSplitField(0, 'geoip.city_name');
|
||||
await aiops.changePointDetectionPage.getTable(0).waitForTableToLoad();
|
||||
const result = await aiops.changePointDetectionPage.getTable(0).parseTable();
|
||||
expect(result.length).to.be(7);
|
||||
// the aggregation may return different results (+-1)
|
||||
expect(result.length).to.be.above(5);
|
||||
// assert asc sorting by p_value is applied
|
||||
expect(parseFloat(result[0].pValue)).to.be.lessThan(parseFloat(result[4].pValue));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue