mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0fa678bd78
)
Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
This commit is contained in:
parent
504f3a3a88
commit
676d3e84d6
5 changed files with 6 additions and 5 deletions
|
@ -16,7 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
it('filebeat- should have hit count GT 0', async function () {
|
||||
await PageObjects.common.navigateToApp('discover', { insertTimestamp: false });
|
||||
await PageObjects.discover.selectIndexPattern('filebeat-*');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_30 days');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
|
||||
await retry.try(async () => {
|
||||
const hitCount = parseInt(await PageObjects.discover.getHitCount(), 10);
|
||||
expect(hitCount).to.be.greaterThan(0);
|
||||
|
|
|
@ -10,11 +10,12 @@ import { FtrProviderContext } from '../../../functional/ftr_provider_context';
|
|||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const retry = getService('retry');
|
||||
const PageObjects = getPageObjects(['common', 'uptime']);
|
||||
const PageObjects = getPageObjects(['common', 'uptime', 'timePicker']);
|
||||
|
||||
describe('check heartbeat overview page', function () {
|
||||
it('Uptime app should show 1 UP monitor', async function () {
|
||||
await PageObjects.common.navigateToApp('uptime', { insertTimestamp: false });
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
|
||||
|
||||
await retry.try(async function () {
|
||||
const upCount = parseInt((await PageObjects.uptime.getSnapshotCount()).up, 10);
|
||||
|
|
|
@ -26,7 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
}
|
||||
|
||||
await PageObjects.discover.selectIndexPattern('metricbeat-*');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Today');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
|
||||
await retry.try(async function () {
|
||||
const hitCount = parseInt(await PageObjects.discover.getHitCount(), 10);
|
||||
expect(hitCount).to.be.greaterThan(0);
|
||||
|
|
|
@ -30,7 +30,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await appsMenu.clickLink('Discover');
|
||||
}
|
||||
await PageObjects.discover.selectIndexPattern('packetbeat-*');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Today');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
|
||||
await retry.try(async function () {
|
||||
const hitCount = parseInt(await PageObjects.discover.getHitCount(), 10);
|
||||
expect(hitCount).to.be.greaterThan(0);
|
||||
|
|
|
@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await appsMenu.clickLink('Discover');
|
||||
}
|
||||
await PageObjects.discover.selectIndexPattern('winlogbeat-*');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Today');
|
||||
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
|
||||
await retry.try(async function () {
|
||||
const hitCount = parseInt(await PageObjects.discover.getHitCount(), 10);
|
||||
expect(hitCount).to.be.greaterThan(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue