Skip to content

Commit

Permalink
[Annotations listing page] unskip flaky test (elastic#190053)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra authored Aug 8, 2024
1 parent edf5c76 commit ef8caa8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 2 additions & 4 deletions test/functional/apps/visualize/group3/_annotation_listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const log = getService('log');

// Failing: See https://github.com/elastic/kibana/issues/168281
describe.skip('annotation listing page', function () {
describe('annotation listing page', function () {
before(async function () {
await kibanaServer.importExport.load(
'test/functional/fixtures/kbn_archiver/annotation_listing_page_search'
Expand Down Expand Up @@ -49,8 +48,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await listingTable.clearSearchFilter();
});

// FLAKY: https://github.com/elastic/kibana/issues/168281
describe.skip('by text', () => {
describe('by text', () => {
it('matches on the first word', async function () {
await retry.try(async () => {
await listingTable.searchForItemWithName('search');
Expand Down
6 changes: 5 additions & 1 deletion test/functional/services/listing_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class ListingTableService extends FtrService {
}

public async waitUntilTableIsLoaded() {
return this.retry.try(async () => {
await this.retry.try(async () => {
const isLoaded = await this.find.existsByDisplayedByCssSelector(
'[data-test-subj="itemsInMemTable"]:not(.euiBasicTable-loading)'
);
Expand Down Expand Up @@ -264,6 +264,10 @@ export class ListingTableService extends FtrService {

await searchFilter.type(name);
await this.common.pressEnterKey();
const filterValue = await this.getSearchFilterValue();
if (filterValue !== name) {
throw new Error(`the input value has not updated properly`);
}
});

await this.waitUntilTableIsLoaded();
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/functional/apps/lens/group2/fields_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const queryBar = getService('queryBar');
const dataViews = getService('dataViews');

// Failing: See https://github.com/elastic/kibana/issues/190030
describe.skip('lens fields list tests', () => {
describe('lens fields list tests', () => {
for (const datasourceType of ['form-based', 'ad-hoc', 'ad-hoc-no-timefield']) {
describe(`${datasourceType} datasource`, () => {
before(async () => {
Expand All @@ -48,6 +47,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await fieldEditor.typeScript("emit('abc')");
await fieldEditor.save();
await PageObjects.header.waitUntilLoadingHasFinished();
await testSubjects.missingOrFail('fieldEditor');
});
});
it('should show all fields as available', async () => {
Expand Down

0 comments on commit ef8caa8

Please sign in to comment.