Skip to content

Commit

Permalink
unskip functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Sep 28, 2023
1 parent d79a383 commit 5ff60e8
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ import type { FtrProviderContext } from '../../../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const PageObjects = getPageObjects(['common']);
const PageObjects = getPageObjects(['common', 'svlCommonPage']);
const retry = getService('retry');

// FLAKY: https://github.com/elastic/kibana/issues/165763
describe.skip('Partial results example', () => {
describe('Partial results example', () => {
before(async () => {
await PageObjects.svlCommonPage.login();
await PageObjects.common.navigateToApp('searchExamples');
await testSubjects.click('/search');
});

after(async () => {
await PageObjects.svlCommonPage.forceLogout();
});

it('should update a progress bar', async () => {
await testSubjects.click('responseTab');
const progressBar = await testSubjects.find('progressBar');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
const retry = getService('retry');
const testSubjects = getService('testSubjects');
const monacoEditor = getService('monacoEditor');
const PageObjects = getPageObjects(['common', 'timePicker', 'header', 'unifiedFieldList']);
const PageObjects = getPageObjects([
'common',
'timePicker',
'header',
'unifiedFieldList',
'svlCommonPage',
]);
const dataViewTitle = 'existence_index_*';

async function addDSLFilter(value: string) {
Expand All @@ -51,16 +57,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
await PageObjects.header.waitUntilLoadingHasFinished();
}

// Failing: See https://github.com/elastic/kibana/issues/165938
// Failing: See https://github.com/elastic/kibana/issues/165927
describe.skip('Fields existence info', () => {
describe('Fields existence info', () => {
before(async () => {
await esArchiver.load(
'test/api_integration/fixtures/es_archiver/index_patterns/constant_keyword'
);
await kibanaServer.importExport.load(
'test/api_integration/fixtures/kbn_archiver/index_patterns/constant_keyword.json'
);
await PageObjects.svlCommonPage.login();
await PageObjects.common.navigateToApp('unifiedFieldListExamples');
await PageObjects.header.waitUntilLoadingHasFinished();
await retry.waitFor('combobox is ready', async () => {
Expand All @@ -85,6 +90,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
);
await PageObjects.unifiedFieldList.cleanSidebarLocalStorage();
await kibanaServer.savedObjects.cleanStandardList();
await PageObjects.svlCommonPage.forceLogout();
});

describe('existence', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
const svlCommonPage = getPageObject('svlCommonPage');
const svlCommonNavigation = getService('svlCommonNavigation');

// Failing: See https://github.com/elastic/kibana/issues/165386
// FLAKY: https://github.com/elastic/kibana/issues/165414
describe.skip('home page', function () {
describe('home page', function () {
before(async () => {
await svlCommonPage.login();
});

it('has project header', async () => {
await svlCommonNavigation.navigateToKibanaHome();
await svlCommonPage.assertProjectHeaderExists();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

describe('Create enrich policy', function () {
before(async () => {
await log.debug('Creating test index');
log.debug('Creating test index');
try {
await es.indices.create({
index: INDEX_NAME,
Expand All @@ -43,7 +43,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
throw e;
}

await log.debug('Navigating to the enrich policies tab');
log.debug('Navigating to the enrich policies tab');
await pageObjects.svlCommonPage.login();
await security.testUser.setRoles(['index_management_user']);
await pageObjects.common.navigateToApp('indexManagement');
Expand All @@ -56,7 +56,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});

after(async () => {
await log.debug('Cleaning up created index');
log.debug('Cleaning up created index');

try {
await es.indices.delete({ index: INDEX_NAME });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
const cases = getService('cases');
const toasts = getService('toasts');

// Failing: See https://github.com/elastic/kibana/issues/166448
describe.skip('Configure Case', function () {
describe('Configure Case', function () {
before(async () => {
await svlCommonPage.login();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['observabilityLogExplorer', 'svlCommonNavigation']);
export default function ({ getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects([
'observabilityLogExplorer',
'svlCommonNavigation',
'svlCommonPage',
]);

describe('Application', () => {
before(async () => {
await PageObjects.svlCommonPage.login();
});

after(async () => {
await PageObjects.svlCommonPage.forceLogout();
});

// FLAKY: https://github.com/elastic/kibana/issues/165943
describe.skip('Application', () => {
it('is shown in the global search', async () => {
await PageObjects.observabilityLogExplorer.navigateTo();
await PageObjects.svlCommonNavigation.search.showSearch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['observabilityLogExplorer', 'svlCommonPage']);
const testSubjects = getService('testSubjects');

// Failing: See https://github.com/elastic/kibana/issues/166461
describe.skip('Filter controls customization', () => {
describe('Filter controls customization', () => {
before('initialize tests', async () => {
await PageObjects.svlCommonPage.login();
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
const cases = getService('cases');
const toasts = getService('toasts');

// Failing: See https://github.com/elastic/kibana/issues/166551
describe.skip('Configure Case', function () {
describe('Configure Case', function () {
before(async () => {
await svlCommonPage.login();

Expand Down

0 comments on commit 5ff60e8

Please sign in to comment.