Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ftr] unskip serverless functional tests #167497

Merged
merged 4 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
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 @@ -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,15 @@ 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();
});

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

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