@@ -130,35 +130,35 @@ describe('Test reporting integration if plugin installed', () => {
130
130
cy . get ( 'body' ) . contains ( 'Please continue report generation in the new tab' ) ;
131
131
} ) ;
132
132
133
- // it('Create in-context PNG report from notebook', () => {
134
- // cy.get('#reportingActionsButton').click();
135
- // cy.get('button.euiContextMenuItem:nth-child(2)')
136
- // .contains('Download PNG')
137
- // .click();
138
- // cy.get('body').contains('Please continue report generation in the new tab');
139
- // });
140
-
141
- // it('Create on-demand report definition from context menu', () => {
142
- // cy.get('#reportingActionsButton').click();
143
- // cy.get('button.euiContextMenuItem:nth-child(3)')
144
- // .contains('Create report definition')
145
- // .click();
146
- // cy.location('pathname', { timeout: delayTime * 3 }).should(
147
- // 'include',
148
- // '/reports-dashboards'
149
- // );
150
- // cy.get('#reportSettingsName').type('Create notebook on-demand report');
151
- // cy.get('#createNewReportDefinition').click({ force: true });
152
- // });
153
-
154
- // it('View reports homepage from context menu', () => {
155
- // cy.get('#reportingActionsButton').click();
156
- // cy.get('button.euiContextMenuItem:nth-child(4)')
157
- // .contains('View reports')
158
- // .click();
159
- // cy.location('pathname', { timeout: delayTime * 3 }).should(
160
- // 'include',
161
- // '/reports-dashboards'
162
- // );
163
- // });
133
+ it ( 'Create in-context PNG report from notebook' , ( ) => {
134
+ cy . get ( '#reportingActionsButton' ) . click ( ) ;
135
+ cy . get ( 'button.euiContextMenuItem:nth-child(2)' )
136
+ . contains ( 'Download PNG' )
137
+ . click ( ) ;
138
+ cy . get ( 'body' ) . contains ( 'Please continue report generation in the new tab' ) ;
139
+ } ) ;
140
+
141
+ it ( 'Create on-demand report definition from context menu' , ( ) => {
142
+ cy . get ( '#reportingActionsButton' ) . click ( ) ;
143
+ cy . get ( 'button.euiContextMenuItem:nth-child(3)' )
144
+ . contains ( 'Create report definition' )
145
+ . click ( ) ;
146
+ cy . location ( 'pathname' , { timeout : delayTime * 3 } ) . should (
147
+ 'include' ,
148
+ '/reports-dashboards'
149
+ ) ;
150
+ cy . get ( '#reportSettingsName' ) . type ( 'Create notebook on-demand report' ) ;
151
+ cy . get ( '#createNewReportDefinition' ) . click ( { force : true } ) ;
152
+ } ) ;
153
+
154
+ it ( 'View reports homepage from context menu' , ( ) => {
155
+ cy . get ( '#reportingActionsButton' ) . click ( ) ;
156
+ cy . get ( 'button.euiContextMenuItem:nth-child(4)' )
157
+ . contains ( 'View reports' )
158
+ . click ( ) ;
159
+ cy . location ( 'pathname' , { timeout : delayTime * 3 } ) . should (
160
+ 'include' ,
161
+ '/reports-dashboards'
162
+ ) ;
163
+ } ) ;
164
164
} ) ;
0 commit comments