Skip to content

Commit

Permalink
Stabilize and re-enable custom url test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Nov 8, 2022
1 parent 76ee973 commit e1734ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export default function ({ getService }: FtrProviderContext) {
const ml = getService('ml');
const browser = getService('browser');

// Failing: See https://github.com/elastic/kibana/issues/143933
describe.skip('custom urls', function () {
describe('custom urls', function () {
this.tags(['ml']);

let testDashboardId: string | null = null;
Expand Down
3 changes: 3 additions & 0 deletions x-pack/test/functional/services/ml/custom_urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,15 @@ export function MachineLearningCustomUrlsProvider({

async assertDiscoverCustomUrlAction(expectedHitCountFormatted: string) {
await PageObjects.discover.waitForDiscoverAppOnScreen();
await PageObjects.header.waitUntilLoadingHasFinished();

// Make sure all existing popovers are closed
await browser.pressKeys(browser.keys.ESCAPE);

// During cloud tests, the small browser width might cause hit count to be invisible
// so temporarily collapsing the sidebar ensures the count shows
await PageObjects.discover.closeSidebar();

await retry.tryForTime(10 * 1000, async () => {
const hitCount = await PageObjects.discover.getHitCount();
expect(hitCount).to.eql(
Expand Down

0 comments on commit e1734ed

Please sign in to comment.