red-hat-storage / ocs-ci

https://ocs-ci.readthedocs.io/en/latest/
MIT License
109 stars 166 forks source link

test_obc_creation_and_deletion - bucket class dropdown was not clicked #9520

Closed DanielOsypenko closed 1 week ago

DanielOsypenko commented 4 months ago

test_obc_creation_and_deletion[openshift-storage.noobaa.io-noobaa-default-bucket-class-Actions-True]

check why self.do_click(self.obc_loc["bucketclass_dropdown"]) does not always work - this is a call that preceded the failure line

self = ObjectBucketClaimsTab Web Page locator = ('input[placeholder="Select BucketClass"],input[class="pf-c-form-control pf-m-search"]', 'css selector') text = 'noobaa-default-bucket-class', timeout = 30

def do_send_keys(self, locator, text, timeout=30):
    """
    Send text to element on OpenShift Console

    locator (tuple): (GUI element needs to operate on (str), type (By))
    text (str): Send text to element
    timeout (int): Looks for a web element repeatedly until timeout (sec) happens.

    """
    # wait for page fully loaded only if an element was not located
    # prevents needless waiting and frequent crushes on ODF Overview page,
    # when metrics and alerts frequently updated
    if not self.get_elements(locator):
        self.page_has_loaded()
    wait = WebDriverWait(self.driver, timeout)
    try:
        if (
            version.get_semantic_version(get_ocp_version(), True)
            <= version.VERSION_4_11
        ):
            element = wait.until(
                ec.presence_of_element_located((locator[1], locator[0]))
            )
        else:

          element = wait.until(
                ec.visibility_of_element_located((locator[1], locator[0]))
            )

ocs_ci/ocs/ui/base_ui.py:284:

https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/632/19721/957464/957620/log?logParams=history%3D957620%26page.page%3D1

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.

github-actions[bot] commented 1 week ago

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.