Skip to content

Commit

Permalink
test: πŸ’ improve how inspector is opened in functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Sep 16, 2020
1 parent 5c5acd9 commit d1a5121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/services/dashboard/panel_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ export function DashboardPanelActionsProvider({ getService, getPageObjects }: Ft

async openInspector(parent: WebElementWrapper) {
await this.openContextMenu(parent);
const exists = await testSubjects.exists(OPEN_INSPECTOR_TEST_SUBJ);
if (!exists) {
await this.clickContextMenuMoreItem();
}
await testSubjects.click(OPEN_INSPECTOR_TEST_SUBJ);
}

Expand Down

0 comments on commit d1a5121

Please sign in to comment.