Skip to content

Commit

Permalink
resolve circular import
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Osypenko <dosypenk@redhat.com>
  • Loading branch information
DanielOsypenko committed Dec 12, 2024
1 parent 9c5a370 commit 9e124ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ocs_ci/ocs/ui/page_objects/confirm_dialog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from ocs_ci.ocs.ui.base_ui import BaseUI
from ocs_ci.ocs.ui.helpers_ui import format_locator


class ConfirmDialog(BaseUI):
Expand Down Expand Up @@ -32,6 +31,8 @@ def dialog_type_resource_name(self, resource_name):
"""
Type the resource name in the dialog
"""
from ocs_ci.ocs.ui.helpers_ui import format_locator

self.clear_input_gradually(
format_locator(self.generic_locators["confirm_dilog_input"], resource_name)
)
Expand Down
3 changes: 2 additions & 1 deletion ocs_ci/ocs/ui/page_objects/resource_list.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from ocs_ci.ocs.ui.helpers_ui import format_locator
from ocs_ci.ocs.ui.page_objects.buckets_tab import BucketsTab
from ocs_ci.ocs.ui.page_objects.searchbar import SearchBar
from ocs_ci.ocs.ui.base_ui import logger
from ocs_ci.utility import version
Expand Down Expand Up @@ -83,6 +82,8 @@ def delete_resource(self, delete_via, resource):
logger.info(f"Confirm {resource} Deletion")
# same PopUp both for OBC and OB
# check if we are on the Bucket page, it has different UI starting from 4.18
from ocs_ci.ocs.ui.page_objects.buckets_tab import BucketsTab

if (
isinstance(self, BucketsTab)
and self.ocp_version_semantic >= version.VERSION_4_18
Expand Down

0 comments on commit 9e124ee

Please sign in to comment.