|
| 1 | +import { commonPages } from '../../views/common'; |
| 2 | +import { nav } from '../../views/nav'; |
| 3 | + |
| 4 | + |
| 5 | +// Set constants for the operators that need to be installed for tests. |
| 6 | +const MCP = { |
| 7 | + namespace: 'openshift-cluster-observability-operator', |
| 8 | + packageName: 'cluster-observability-operator', |
| 9 | + operatorName: 'Cluster Observability Operator', |
| 10 | + config: { |
| 11 | + kind: 'UIPlugin', |
| 12 | + name: 'monitoring', |
| 13 | + }, |
| 14 | +}; |
| 15 | + |
| 16 | +const MP = { |
| 17 | + namespace: 'openshift-monitoring', |
| 18 | + operatorName: 'Cluster Monitoring Operator', |
| 19 | +}; |
| 20 | + |
| 21 | +describe('BVT: COO', () => { |
| 22 | + |
| 23 | + before(() => { |
| 24 | + cy.beforeBlockCOO(MCP, MP); |
| 25 | + |
| 26 | + }); |
| 27 | + |
| 28 | + |
| 29 | + after(() => { |
| 30 | + cy.afterBlockCOO(MCP, MP); |
| 31 | + }); |
| 32 | + |
| 33 | + it('1. Admin perspective - Observe Menu', () => { |
| 34 | + cy.log('Admin perspective - Observe Menu and verify all submenus'); |
| 35 | + nav.sidenav.clickNavLink(['Observe', 'Alerting']); |
| 36 | + commonPages.titleShouldHaveText('Alerting'); |
| 37 | + nav.tabs.switchTab('Silences'); |
| 38 | + nav.tabs.switchTab('Alerting rules'); |
| 39 | + // nav.tabs.switchTab('Incidents'); |
| 40 | + nav.sidenav.clickNavLink(['Observe', 'Dashboards (Perses)']); |
| 41 | + commonPages.titleShouldHaveText('Dashboards'); |
| 42 | + |
| 43 | + }); |
| 44 | + |
| 45 | + /** |
| 46 | + * TODO: To be replaced by COO validation such as Dashboards (Perses) scenarios |
| 47 | + */ |
| 48 | + |
| 49 | +}); |
0 commit comments