Project

General

Profile

Actions

Cleanup #59142

closed

mgr/dashboard: fix e2e for dashboard v3

Added by Nizamudeen A about 1 year ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Component - Landing Page
Target version:
-
% Done:

0%

Tags:
backport_processed
Backport:
reef, quincy
Reviewed:
Affected Versions:
Pull request ID:

Description

After we enabled the dashboard v3 in our branches, the e2e's are failing since those are not adapted. We should create e2e's for those.
Also the applitools are failing, probably we'll need to update it with the screenshots.

https://jenkins.ceph.com/job/ceph-dashboard-pull-requests/12381/consoleFull

 Dashboard Main Page
    1) Should check that dashboard cards have correct information
    Check that all hyperlinks on info cards lead to the correct page and fields exist
      2) should ensure that all linked info cards lead to correct page
      3) should verify that info cards exist on dashboard in proper order
      4) should verify that info card group titles are present and in the right order

  0 passing (17m)
  4 failing

  1) Dashboard Main Page
       Should check that dashboard cards have correct information:
     AssertionError: Timed out retrying after 120000ms: Expected to find element: `cd-info-card`, but never found it.
      at DashboardPageHelper.infoCard (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1072:12)
      at DashboardPageHelper.infoCardBodyText (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1081:21)
      at _loop_1 (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1014:23)
      at Context.eval (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1033:13)

  2) Dashboard Main Page
       Check that all hyperlinks on info cards lead to the correct page and fields exist
         should ensure that all linked info cards lead to correct page:
     AssertionError: Timed out retrying after 120000ms: Expected to find element: `cd-info-card[cardtitle="Monitors"]`, but never found it.
      at DashboardPageHelper.clickInfoCardLink (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1069:12)
      at Context.eval (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:956:31)

  3) Dashboard Main Page
       Check that all hyperlinks on info cards lead to the correct page and fields exist
         should verify that info cards exist on dashboard in proper order:
     AssertionError: Timed out retrying after 120000ms: Expected to find element: `cd-info-card`, but never found it.
      at DashboardPageHelper.infoCard (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1072:12)
      at Context.eval (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:992:27)

  4) Dashboard Main Page
       Check that all hyperlinks on info cards lead to the correct page and fields exist
         should verify that info card group titles are present and in the right order:
     AssertionError: Timed out retrying after 120000ms: Expected to find element: `.info-group-title`, but never found it.
      at DashboardPageHelper.infoGroupTitle (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:1066:19)
      at Context.eval (https://172.21.2.10:7820/__cypress/tests?p=cypress/integration/ui/dashboard.e2e-spec.ts:997:23)

Related issues 2 (0 open2 closed)

Copied to Dashboard - Backport #59469: quincy: mgr/dashboard: fix e2e for dashboard v3ResolvedPedro González Gómez Actions
Copied to Dashboard - Backport #59470: reef: mgr/dashboard: fix e2e for dashboard v3ResolvedPedro González Gómez Actions
Actions

Also available in: Atom PDF