Bug 1992751

Summary: Flaky e2e test with error: Expected to find element: `[data-test="resource-sidebar"]`, but never found it.
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED DUPLICATE QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, dtaylor, nmukherj
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-11 17:41:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
1_Kubernetes resource CRUD operations -- Ingress -- creates the resource instance (failed).png none

Description Christoph Jerolimov 2021-08-11 17:27:18 UTC
Description of problem:
Console CI is flaky because of on issue that the sidebar component is not shown. The following tests are failing sometimes and runs successfully after some retries.

From the CI error log:

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ...
  │ ✖  crud/resource-crud.spec.ts               18:52      174      168        6        -        - │
  │ ...


  1) Kubernetes resource CRUD operations
       Ingress
         creates the resource instance:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `[data-test="resource-sidebar"]`, but never found it.
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:48977:49)

  2) Kubernetes resource CRUD operations
       Ingress
         displays detail view for newly created resource instance:
     AssertionError: Timed out retrying after 30000ms: expected 'https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/k8s/ns/test-tibiy/ingresses/~new' to include '/test-tibiy-ingress'
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:48991:26)

  3) Kubernetes resource CRUD operations
       Ingress
         displays a list view for the resource:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `[data-test-rows="resource-row"`, but never found it.
      at Object.shouldBeLoaded (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49238:54)
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49012:80)

  4) Kubernetes resource CRUD operations
       Ingress
         search view displays created resource instance:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `[data-test-rows="resource-row"]`, but never found it.
      at Object.shouldExist (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49265:43)
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49020:80)

  5) Kubernetes resource CRUD operations
       Ingress
         edits the resource instance:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `[data-test-rows="resource-row"]`, but never found it.
      at Object.clickKebabAction (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49251:16)
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:49029:80)

  6) Kubernetes resource CRUD operations
       Ingress
         deletes the resource instance:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `[data-test="name-filter-input"]`, but never found it.
      at Context.eval (https://console-openshift-console.apps.ci-op-9r3pvl5g-75d12.**********************/__cypress/tests?p=tests/crud/resource-crud.spec.ts:48836:8)



[mochawesome] Report JSON saved to /go/src/github.com/openshift/console/frontend/gui_test_screenshots/cypress_report_010.json


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        174                                                                              │
  │ Passing:      168                                                                              │
  │ Failing:      6                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  12                                                                               │
  │ Video:        true                                                                             │
  │ Duration:     18 minutes, 52 seconds                                                           │
  │ Spec Ran:     crud/resource-crud.spec.ts                                                       │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


Version-Release number of selected component (if applicable):
4.9

How reproducible:
Sometimes

Steps to Reproduce:
Affects only the CI build

Actual results:
Sometimes broken with false positives (?)

Expected results:
More stable CI builds

Additional info:
None

Comment 1 Christoph Jerolimov 2021-08-11 17:30:42 UTC
Created attachment 1813228 [details]
1_Kubernetes resource CRUD operations -- Ingress -- creates the resource instance (failed).png

Comment 2 Christoph Jerolimov 2021-08-11 17:41:01 UTC

*** This bug has been marked as a duplicate of bug 1990577 ***