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

[Discover] Unskip and improve sidebar filter functional test #102986

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
3 changes: 1 addition & 2 deletions test/functional/apps/discover/_sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'discover', 'timePicker']);
const testSubjects = getService('testSubjects');

// Failing: See https://github.com/elastic/kibana/issues/101449
describe.skip('discover sidebar', function describeIndexTests() {
describe('discover sidebar', function describeIndexTests() {
before(async function () {
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/discover');
Expand Down
5 changes: 4 additions & 1 deletion test/functional/page_objects/discover_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ export class DiscoverPageObject extends FtrService {

public async closeSidebarFieldFilter() {
await this.testSubjects.click('toggleFieldFilterButton');
await this.testSubjects.missingOrFail('filterSelectionPanel');

await this.retry.waitFor('sidebar filter closed', async () => {
return !(await this.testSubjects.exists('filterSelectionPanel'));
});
}

public async waitForChartLoadingComplete(renderCount: number) {
Expand Down