Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default ({ getPageObjects, getService }: FtrProviderContext) => {
const PageObjects = getPageObjects(['security']);
const config = getService('config');
const esArchiver = getService('esArchiver');
const logsUi = getService('logsUi');
const retry = getService('retry');
const security = getService('security');

const retryNavigationOptions = {
retryCount: 2,
retryDelay: 0,
timeout: config.get('timeouts.try') * 2,
};

describe('Log Entry Categories Tab', function () {
this.tags('includeFirefox');

Expand Down Expand Up @@ -61,11 +68,17 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
before(() => logsUi.cleanIndices());

it('Shows no data page when indices do not exist', async () => {
await logsUi.logEntryCategoriesPage.navigateTo();

await retry.try(async () => {
expect(await logsUi.logEntryCategoriesPage.getNoDataScreen()).to.be.ok();
});
await retry.tryWithRetries(
"retry if indices haven't been refreshed yet",
async () => {
await logsUi.logEntryCategoriesPage.navigateTo();

await retry.try(async () => {
expect(await logsUi.logEntryCategoriesPage.getNoDataScreen()).to.be.ok();
});
},
retryNavigationOptions
);
});

describe('when indices exists', () => {
Expand All @@ -78,11 +91,17 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});

it('shows setup page when indices exist', async () => {
await logsUi.logEntryCategoriesPage.navigateTo();

await retry.try(async () => {
expect(await logsUi.logEntryCategoriesPage.getSetupScreen()).to.be.ok();
});
await retry.tryWithRetries(
"retry if indices haven't been refreshed yet",
async () => {
await logsUi.logEntryCategoriesPage.navigateTo();

await retry.try(async () => {
expect(await logsUi.logEntryCategoriesPage.getSetupScreen()).to.be.ok();
});
},
retryNavigationOptions
);
});

it('shows required ml read privileges prompt when the user has not any ml privileges', async () => {
Expand Down