@@ -27,16 +27,17 @@ const MP = {
2727describe ( 'BVT: Incidents - UI' , { tags : [ '@smoke' , '@incidents' ] } , ( ) => {
2828 before ( ( ) => {
2929 cy . beforeBlockCOO ( MCP , MP , { dashboards : false , troubleshootingPanel : false } ) ;
30- cy . mockIncidentFixture ( 'incident-scenarios/1-single-incident-firing-critical-and-warning-alerts.yaml' ) ;
30+ cy . mockIncidentFixture (
31+ 'incident-scenarios/1-single-incident-firing-critical-and-warning-alerts.yaml' ,
32+ ) ;
3133 } ) ;
3234
33-
3435 it ( '1. Admin perspective - Incidents page - Toolbar and charts toggle functionality' , ( ) => {
3536 cy . log ( '1.1 Verify toolbar and toggle charts button' ) ;
3637 incidentsPage . elements . toolbar ( ) . should ( 'be.visible' ) ;
3738 incidentsPage . elements . toggleChartsButton ( ) . should ( 'be.visible' ) ;
3839 incidentsPage . elements . toggleChartsButton ( ) . click ( ) ;
39-
40+
4041 cy . log ( '1.2 Verify charts are hidden after toggle' ) ;
4142 incidentsPage . elements . incidentsChartTitle ( ) . should ( 'not.exist' ) ;
4243 incidentsPage . elements . alertsChartTitle ( ) . should ( 'not.exist' ) ;
@@ -46,7 +47,7 @@ describe('BVT: Incidents - UI', { tags: ['@smoke', '@incidents'] }, () => {
4647 it ( '2. Admin perspective - Incidents page - Days filter functionality' , ( ) => {
4748 cy . log ( '2.1 Set days filter to 3 days' ) ;
4849 incidentsPage . setDays ( '3 days' ) ;
49-
50+
5051 cy . log ( '2.2 Verify filter selection is updated' ) ;
5152 incidentsPage . elements . daysSelectToggle ( ) . should ( 'contain.text' , '3 days' ) ;
5253 } ) ;
@@ -55,18 +56,19 @@ describe('BVT: Incidents - UI', { tags: ['@smoke', '@incidents'] }, () => {
5556 cy . log ( '3.1 Clear filters and toggle Critical filter' ) ;
5657 incidentsPage . clearAllFilters ( ) ;
5758 incidentsPage . toggleFilter ( 'Critical' ) ;
58- // Visibility verification of the filter chip is too complex. The functionality will be
59+ // Visibility verification of the filter chip is too complex. The functionality will be
5960 // better verified in the filtering specific test.
6061 cy . log ( '3.2 Verify filter can be removed' ) ;
6162 incidentsPage . removeFilter ( 'Severity' , 'Critical' ) ;
6263 } ) ;
6364
6465 it ( '4. Admin perspective - Incidents page - Charts and alerts empty state' , ( ) => {
6566 cy . mockIncidents ( [ ] ) ;
66-
67+
6768 cy . log ( '4.1 Verify chart titles are visible' ) ;
6869 incidentsPage . elements . incidentsChartTitle ( ) . should ( 'be.visible' ) ;
6970 incidentsPage . elements . alertsChartTitle ( ) . should ( 'be.visible' ) ;
71+
7072 cy . log ( '4.2 Verify alerts chart shows empty state' ) ;
7173 incidentsPage . elements . alertsChartEmptyState ( ) . should ( 'exist' ) ;
7274 } ) ;
@@ -79,11 +81,13 @@ describe('BVT: Incidents - UI', { tags: ['@smoke', '@incidents'] }, () => {
7981 incidentsPage . findIncidentWithAlert ( 'TargetAlert' ) . should ( 'be.false' ) ;
8082
8183 cy . log ( '5.2 Verify traversing incident table works when the alert is not present' ) ;
82- cy . mockIncidentFixture ( 'incident-scenarios/1-single-incident-firing-critical-and-warning-alerts.yaml' ) ;
84+ cy . mockIncidentFixture (
85+ 'incident-scenarios/1-single-incident-firing-critical-and-warning-alerts.yaml' ,
86+ ) ;
8387 incidentsPage . findIncidentWithAlert ( 'TargetAlert' ) . should ( 'be.false' ) ;
8488
8589 cy . log ( '5.3 Verify traversing incident table works when the alert is present' ) ;
8690 cy . mockIncidentFixture ( 'incident-scenarios/6-multi-incident-target-alert-scenario.yaml' ) ;
8791 incidentsPage . findIncidentWithAlert ( 'TargetAlert' ) . should ( 'be.true' ) ;
8892 } ) ;
89- } ) ;
93+ } ) ;
0 commit comments