[Discover] Unskip vis tests (#194020)

- Closees https://github.com/elastic/kibana/issues/184600
This commit is contained in:
Julia Rechkunova 2024-09-26 13:36:41 +02:00 committed by GitHub
parent be9dd06f74
commit e1f90cc393
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,8 +102,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
return seriesType;
}
// Failing: See https://github.com/elastic/kibana/issues/184600
describe.skip('discover lens vis', function () {
describe('discover lens vis', function () {
before(async () => {
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
@ -174,10 +173,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
hasTimeField: true,
changeTimestampField: `--- I don't want to use the time filter ---`,
});
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();
await checkNoVis(defaultTotalCount);
await dataViews.editFromSearchBar({ newName: 'logs', newTimeField: '@timestamp' });
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();
await checkHistogramVis(defaultTimespan, defaultTotalCount);
expect(await discover.getVisContextSuggestionType()).to.be('histogramForDataView');
});