Skip to content

Commit

Permalink
gui_e2e: fix locators to restore failing tests
Browse files Browse the repository at this point in the history
Jira ticket: CMK-21202

Change-Id: I5282b4136bcca4e93ac8db26bd8ff7ce6d80afac
  • Loading branch information
asyash26 committed Jan 16, 2025
1 parent 1a1248c commit 08f3de0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/gui_e2e/customize_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
],
"Recurring downtimes for hosts": [
{
"locator": "[name='ve_p_comment']",
"locator": "input[name*='_p_comment']",
"action": "fill",
"value": "test"
}
]
}
}
1 change: 0 additions & 1 deletion tests/gui_e2e/test_email_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def _notification_user(test_site: Site) -> Iterator[tuple[str, str]]:
yield from create_notification_user(test_site)


@pytest.mark.skip(reason="Ongoing investigation - CMK-21202")
def test_filesystem_email_notifications(
dashboard_page: Dashboard,
linux_hosts: list[str],
Expand Down
2 changes: 1 addition & 1 deletion tests/gui_e2e/test_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _create_rules(pw: Dashboard) -> dict[str, list[str]]:
return created_rules


@pytest.mark.skip(reason="Ongoing investigation - CMK-21202")
@pytest.mark.skip(reason="Ongoing investigation - CMK-21219")
def test_create_rules(
test_site: Site, dashboard_page: Dashboard, pytestconfig: pytest.Config
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/testlib/playwright/pom/setup/add_rule_filesystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _levels_for_used_free_space_checkbox(self) -> Locator:
@property
def levels_for_used_free_space_warning_text_field(self) -> Locator:
return self._value_section("Levels for used/free space").locator(
"input[name='ve_p_levels_0_0_0']"
"input[name*='_p_levels_0_0_0']"
)

def check_levels_for_user_free_space(self, check: bool) -> None:
Expand Down

0 comments on commit 08f3de0

Please sign in to comment.