Skip to content

Commit cc605e6

Browse files
author
Ritvi Bhatt
committed
add back reporting tests
Signed-off-by: Ritvi Bhatt <ribhatt@amazon.com>
1 parent 23ed5b3 commit cc605e6

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js

+31-31
Original file line numberDiff line numberDiff line change
@@ -130,35 +130,35 @@ describe('Test reporting integration if plugin installed', () => {
130130
cy.get('body').contains('Please continue report generation in the new tab');
131131
});
132132

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+
});
164164
});

0 commit comments

Comments
 (0)