Skip to content

[dashboard] replace panel_context_menu functional tests with unit tests#226876

Merged
nreese merged 4 commits intoelastic:mainfrom
nreese:remove_panel_context_menu
Jul 8, 2025
Merged

[dashboard] replace panel_context_menu functional tests with unit tests#226876
nreese merged 4 commits intoelastic:mainfrom
nreese:remove_panel_context_menu

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Jul 7, 2025

Test cases in panel_context_menu are better suited for unit tests instead of functional tests.

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Jul 7, 2025

/ci

1 similar comment
@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Jul 7, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Jul 7, 2025

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Jul 7, 2025

/ci

@nreese nreese marked this pull request as ready for review July 7, 2025 22:05
@nreese nreese requested a review from a team as a code owner July 7, 2025 22:05
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 7, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Jul 7, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #68 / discover - group 1 Discover CSV Export Generate CSV: new search generates a report from a new search with data: default

Metrics [docs]

✅ unchanged

History

Copy link
Copy Markdown
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work to remove these tests. Spent a few minutes ensuring that we had unit test coverage already for cloning and editing panels + looked through the code. LGTM!

await browser.get(currentUrl.toString(), false);
});

describe('visualization object edit menu', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see removal of this legacy vis code leaking into Dashboard.

it('are hidden in view mode', async function () {
await dashboard.saveDashboard(dashboardName);

await dashboardPanelActions.expectMissingEditPanelAction();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we had redundant coverage for this in src/platform/plugins/private/presentation_panel/public/panel_actions/edit_panel_action/edit_panel_action.test.tsx. Nice to see the FTR coverage removed.

@nreese nreese merged commit b491905 into elastic:main Jul 8, 2025
12 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16148188630

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 226876

Questions ?

Please refer to the Backport tool documentation

@nreese nreese added backport:skip This PR does not require backporting and removed v9.1.0 v8.19.0 backport:version Backport to applied version labels labels Jul 8, 2025
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…ts (elastic#226876)

Test cases in panel_context_menu are better suited for unit tests
instead of functional tests.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants