Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport main] Fix dashboards observability and reporting test CI issue #1063

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix dashboards observability and reporting test CI issue (#1057)
* remove one reporting test

Signed-off-by: Eric <menwe@amazon.com>

* remove one panel test

Signed-off-by: Eric <menwe@amazon.com>

* fix liniting issue

Signed-off-by: Eric <menwe@amazon.com>

---------

Signed-off-by: Eric <menwe@amazon.com>
(cherry picked from commit f871b20)
mengweieric authored and github-actions[bot] committed Feb 6, 2024
commit 7ea09d8366e21a75582554bd7c26fa18e73b9021
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@

import {
TEST_PANEL,
TEST_PANEL_COPY,
BASE_PATH,
PANELS_TIMEOUT,
} from '../../../utils/constants';
@@ -40,26 +39,4 @@ describe('Testing panels table', () => {

cy.contains(TEST_PANEL).should('exist');
});

it('Duplicates a panel', () => {
cy.get('.euiCheckbox__input[title="Select this row"]', {
timeout: PANELS_TIMEOUT,
})
.eq(0)
.trigger('mouseover')
.click();
cy.get('.euiButton__text').contains('Actions').trigger('mouseover').click();
cy.get('.euiContextMenuItem__text')
.contains('Duplicate')
.trigger('mouseover')
.click();
cy.get('.euiButton__text')
.contains('Duplicate')
.trigger('mouseover')
.click();
cy.intercept('POST', '/api/saved_objects/*').as('createDashboard');
cy.wait('@createDashboard');

cy.contains(TEST_PANEL_COPY);
});
});
Original file line number Diff line number Diff line change
@@ -27,24 +27,6 @@ describe('Cypress', () => {
cy.wait(3000);
});

it('Download from reporting homepage', () => {
cy.visit(`${BASE_PATH}/app/reports-dashboards#/`, {
waitForGetTenant: true,
});
cy.location('pathname', { timeout: TIMEOUT }).should(
'include',
'/reports-dashboards'
);

cy.wait(12500);
cy.get('[id="landingPageOnDemandDownload"]')
.contains('CSV')
.click({ force: true });
cy.get('.euiToastHeader__title')
.contains('Successfully downloaded report')
.should('exist');
});

it('Download pdf from in-context menu', () => {
cy.visit(`${BASE_PATH}/app/dashboards#`);
cy.wait(5000);