+++ /dev/null
-import { DashboardV3PageHelper } from '../ui/dashboard-v3.po';
-
-describe('Overview Page', { retries: 0 }, () => {
- const overview = new DashboardV3PageHelper();
-
- beforeEach(() => {
- cy.intercept('GET', '**/api/prometheus/data*', {
- statusCode: 200,
- body: {
- status: 'success',
- data: {
- resultType: 'matrix',
- result: []
- }
- }
- });
- cy.intercept('GET', '**/api/prometheus/prometheus_query_data*', {
- statusCode: 200,
- body: {
- status: 'success',
- data: {
- resultType: 'vector',
- result: []
- }
- }
- });
- cy.login();
- overview.navigateTo();
- });
-
- describe('Dashboard accessibility', () => {
- it('should have no accessibility violations', () => {
- cy.injectAxe();
- cy.checkAccessibility(
- {
- exclude: [['.cd-navbar-main']]
- },
- {
- rules: {
- 'page-has-heading-one': { enabled: false }
- }
- }
- );
- });
- });
-});
--- /dev/null
+import { OvevriewPagehelper } from '../ui/dashboard-v3.po';
+
+describe('Overview Page', { retries: 0 }, () => {
+ const overview = new OvevriewPagehelper();
+
+ beforeEach(() => {
+ cy.intercept('GET', '**/api/prometheus/data*', {
+ statusCode: 200,
+ body: {
+ status: 'success',
+ data: {
+ resultType: 'matrix',
+ result: []
+ }
+ }
+ });
+ cy.intercept('GET', '**/api/prometheus/prometheus_query_data*', {
+ statusCode: 200,
+ body: {
+ status: 'success',
+ data: {
+ resultType: 'vector',
+ result: []
+ }
+ }
+ });
+ cy.login();
+ overview.navigateTo();
+ });
+
+ describe('Overview accessibility', () => {
+ it('should have no accessibility violations', () => {
+ cy.injectAxe();
+ cy.checkAccessibility(
+ {
+ exclude: [['.cd-navbar-main']]
+ },
+ {
+ rules: {
+ 'page-has-heading-one': { enabled: false }
+ }
+ }
+ );
+ });
+ });
+});
import { OSDsPageHelper } from '../cluster/osds.po';
-import { DashboardV3PageHelper } from '../ui/dashboard-v3.po';
+import { OvevriewPagehelper } from '../ui/dashboard-v3.po';
describe('OSDs page', () => {
const osds = new OSDsPageHelper();
- const overview = new DashboardV3PageHelper();
+ const overview = new OvevriewPagehelper();
before(() => {
cy.login();
-import { DashboardV3PageHelper } from './dashboard-v3.po';
+import { OvevriewPagehelper } from './dashboard-v3.po';
describe('Dashboard-v3 Main Page', () => {
- const overview = new DashboardV3PageHelper();
+ const overview = new OvevriewPagehelper();
before(() => {
cy.login();
import { PageHelper } from '../page-helper.po';
-export class DashboardV3PageHelper extends PageHelper {
+export class OvevriewPagehelper extends PageHelper {
pages = { index: { url: '#/overview', id: 'cd-overview' } };
cardTitle(index: number) {
@let storageCard = (storageCardVm$ | async);
@let health = (healthCardVm$ | async);
-<div cdsGrid
- [fullWidth]="true"
- [narrow]="true"
- class="cds-mt-6 cds-mb-6 overview">
- <div cdsRow
- class="cds-mb-5">
+<main cdsGrid
+ [fullWidth]="true"
+ [narrow]="true"
+ class="cds-mt-5 cds-mb-5 overview">
+ <div cdsRow>
<div cdsCol
[columnNumbers]="{lg: 11}">
<cd-overview-health-card
<cd-performance-card></cd-performance-card>
</div>
</div>
-</div>
+</main>
@if (isHealthPanelOpen && health?.incidents > 0) {
<cd-side-panel
[headerText]="'Health incidents ('+ health?.incidents +')'"