Bug 1992751 - Flaky e2e test with error: Expected to find element: `[data-test="resource-sidebar"]`, but never found it.
Summary: Flaky e2e test with error: Expected to find element: `[data-test="resource-si...
Keywords:
Status: CLOSED DUPLICATE of bug 1990577
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.0
Assignee: Christoph Jerolimov
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-11 17:27 UTC by Christoph Jerolimov
Modified: 2021-08-11 17:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-11 17:41:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
1_Kubernetes resource CRUD operations -- Ingress -- creates the resource instance (failed).png (137.06 KB, image/png)
2021-08-11 17:30 UTC, Christoph Jerolimov
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.