Skip to content

Commit

Permalink
[Discover] Make it stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Sep 4, 2024
1 parent 2f2a4fe commit 1282c5d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await dataViews.switchTo('my-example-logs');
await dataViews.switchToAndValidate('my-example-logs');
await expectColumns(['@timestamp', 'log.level', 'message']);
await dataGrid.clickGridSettings();
const rowHeightValue = await dataGrid.getCurrentRowHeightValue();
Expand All @@ -154,14 +154,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await dataViews.switchTo('my-example-*');
await dataViews.switchToAndValidate('my-example-*');
await expectColumns(['@timestamp', 'Document']);
await dataGrid.clickGridSettings();
let rowHeightValue = await dataGrid.getCurrentRowHeightValue();
expect(rowHeightValue).to.be('Custom');
let rowHeightNumber = await dataGrid.getCustomRowHeightNumber();
expect(rowHeightNumber).to.be(3);
await dataViews.switchTo('my-example-logs');
await dataViews.switchToAndValidate('my-example-logs');
await expectColumns(['@timestamp', 'log.level', 'message']);
await dataGrid.clickGridSettings();
rowHeightValue = await dataGrid.getCurrentRowHeightValue();
Expand All @@ -176,7 +176,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await dataViews.switchTo('my-example-logs');
await dataViews.switchToAndValidate('my-example-logs');
await PageObjects.discover.waitUntilSearchingHasFinished();
await PageObjects.unifiedFieldList.clickFieldListItemRemove('log.level');
await PageObjects.unifiedFieldList.clickFieldListItemRemove('message');
Expand All @@ -203,7 +203,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await dataViews.switchTo('my-example-logs');
await dataViews.switchToAndValidate('my-example-logs');
await expectColumns(['@timestamp', 'log.level', 'message', 'data_stream.type']);
});
});
Expand Down

0 comments on commit 1282c5d

Please sign in to comment.