mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Unskip data view tests (#201784)
- Closes https://github.com/elastic/kibana/issues/201072 - Closes https://github.com/elastic/kibana/issues/201071 I would not say that the changes fixed it but it does not fail again so let's unskip and monitor.
This commit is contained in:
parent
eacd193cdc
commit
4701af32cf
1 changed files with 14 additions and 13 deletions
|
@ -18,15 +18,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const retry = getService('retry');
|
||||
const dataViews = getService('dataViews');
|
||||
|
||||
const { common, discover, timePicker, unifiedFieldList } = getPageObjects([
|
||||
const { common, discover, timePicker, unifiedFieldList, header } = getPageObjects([
|
||||
'common',
|
||||
'discover',
|
||||
'timePicker',
|
||||
'unifiedFieldList',
|
||||
'header',
|
||||
]);
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/201071
|
||||
describe.skip('data view flyout', function () {
|
||||
describe('data view flyout', function () {
|
||||
before(async () => {
|
||||
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
|
||||
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover.json');
|
||||
|
@ -41,23 +41,23 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await kibanaServer.savedObjects.cleanStandardList();
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional');
|
||||
await es.transport.request({
|
||||
path: '/my-index-000001',
|
||||
path: '/data-view-index-000001',
|
||||
method: 'DELETE',
|
||||
});
|
||||
await es.transport.request({
|
||||
path: '/my-index-000002',
|
||||
path: '/data-view-index-000002',
|
||||
method: 'DELETE',
|
||||
});
|
||||
await es.transport.request({
|
||||
path: '/my-index-000003',
|
||||
path: '/data-view-index-000003',
|
||||
method: 'DELETE',
|
||||
});
|
||||
});
|
||||
|
||||
it('create ad hoc data view', async function () {
|
||||
const initialPattern = 'my-index-';
|
||||
const initialPattern = 'data-view-index-';
|
||||
await es.transport.request({
|
||||
path: '/my-index-000001/_doc',
|
||||
path: '/data-view-index-000001/_doc',
|
||||
method: 'POST',
|
||||
body: {
|
||||
'@timestamp': new Date().toISOString(),
|
||||
|
@ -66,7 +66,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
await es.transport.request({
|
||||
path: '/my-index-000002/_doc',
|
||||
path: '/data-view-index-000002/_doc',
|
||||
method: 'POST',
|
||||
body: {
|
||||
'@timestamp': new Date().toISOString(),
|
||||
|
@ -88,12 +88,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
it('create saved data view', async function () {
|
||||
const updatedPattern = 'my-index-000001';
|
||||
const updatedPattern = 'data-view-index-000001';
|
||||
await dataViews.createFromSearchBar({
|
||||
name: updatedPattern,
|
||||
adHoc: false,
|
||||
hasTimeField: true,
|
||||
});
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
await discover.waitUntilSearchingHasFinished();
|
||||
|
||||
await retry.try(async () => {
|
||||
|
@ -105,9 +106,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
it('update data view with a different time field', async function () {
|
||||
const updatedPattern = 'my-index-000003';
|
||||
const updatedPattern = 'data-view-index-000003';
|
||||
await es.transport.request({
|
||||
path: '/my-index-000003/_doc',
|
||||
path: '/data-view-index-000003/_doc',
|
||||
method: 'POST',
|
||||
body: {
|
||||
timestamp: new Date('1970-01-01').toISOString(),
|
||||
|
@ -117,7 +118,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
for (let i = 0; i < 3; i++) {
|
||||
await es.transport.request({
|
||||
path: '/my-index-000003/_doc',
|
||||
path: '/data-view-index-000003/_doc',
|
||||
method: 'POST',
|
||||
body: {
|
||||
timestamp: new Date().toISOString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue