Skip to content

Commit

Permalink
New ideas menu item
Browse files Browse the repository at this point in the history
Change-Id: I9836bd9698d1e1ebaaead6ca0a4882fc33caf9b2
  • Loading branch information
jorangetree committed Jan 13, 2025
1 parent b4cb42b commit 60797ac
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
15 changes: 15 additions & 0 deletions cmk/gui/help_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,21 @@ def _fun():
icon="developer_resources",
items=developer_items(),
),
TopicMenuTopic(
name="ideas_portal",
title=_("Ideas Portal"),
icon="lightbulb",
items=[
TopicMenuItem(
name="suggest_product_improvement",
title=_("Suggest a product improvement"),
url="https://ideas.checkmk.com",
target="_blank",
sort_index=10,
icon="lightbulb_idea",
),
],
),
TopicMenuTopic(
name="about_checkmk",
title=_("About Checkmk"),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions tests/gui_e2e/test_menu_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
id="saas_status_page",
marks=skip_if_not_saas_edition,
),
pytest.param(
"help_suggest_product_improvement",
"ideas.checkmk.com",
id="suggest_product_improvement",
),
],
)
def test_help_menu(
Expand Down
6 changes: 5 additions & 1 deletion tests/testlib/playwright/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def fixture_context_launch_kwargs(pytestconfig: pytest.Config) -> dict[str, t.An
.. _BrowserContext: https://playwright.dev/python/docs/api/class-browsercontext
"""
kwargs = {"locale": pytestconfig.getoption("--locale")}
kwargs = {
"locale": pytestconfig.getoption("--locale"),
"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 "
"Firefox/133.0", # Test test_help_menu.suggest_product_improvement needs it
}
if pytestconfig.getoption("--video"):
kwargs["record_video_dir"] = str(pytestconfig.getoption("--output"))
kwargs["record_video_size"] = {"width": 1280, "height": 960}
Expand Down
4 changes: 4 additions & 0 deletions tests/testlib/playwright/pom/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ def help_info(self) -> Locator:
def help_saas_status_page(self) -> Locator:
return self.help_menu("Status page")

@property
def help_suggest_product_improvement(self) -> Locator:
return self.help_menu("Suggest a product improvement")

@property
def help_werks(self) -> Locator:
return self.help_menu("Change log (Werks)")
Expand Down

0 comments on commit 60797ac

Please sign in to comment.