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

Unskip Serverless Observability Tests / serverless observability UI navigation active sidenav section is auto opened on load #162323

Merged
merged 11 commits into from
Aug 22, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,17 @@ export function SvlCommonNavigationProvider(ctx: FtrProviderContext) {
},
async expectSectionOpen(sectionId: NavigationId) {
await this.expectSectionExists(sectionId);
const isOpen = await this.isSectionOpen(sectionId);
expect(isOpen).to.be(true);
await retry.waitFor(`section ${sectionId} to be open`, async () => {
const isOpen = await this.isSectionOpen(sectionId);
return isOpen;
});
},
async expectSectionClosed(sectionId: NavigationId) {
await this.expectSectionExists(sectionId);
const isOpen = await this.isSectionOpen(sectionId);
expect(isOpen).to.be(false);
await retry.waitFor(`section ${sectionId} to be closed`, async () => {
const isOpen = await this.isSectionOpen(sectionId);
return !isOpen;
});
},
async openSection(sectionId: NavigationId) {
await this.expectSectionExists(sectionId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
await expectNoPageReload();
});

// FLAKY/BUG?: https://github.com/elastic/kibana/issues/162781
it.skip('active sidenav section is auto opened on load', async () => {
it('active sidenav section is auto opened on load', async () => {
await svlCommonNavigation.sidenav.openSection('project_settings_project_nav');
await svlCommonNavigation.sidenav.clickLink({ deepLinkId: 'management' });
await browser.refresh();
Expand Down
Loading