E2E: Stabilize smoke tests for slow GH instances (#106995)

Test
This commit is contained in:
Ivan Ortega Alba
2025-06-20 09:18:04 +02:00
committed by GitHub
parent 7dabc58833
commit c5243c0908
@@ -14,17 +14,11 @@ describe('Panels smokescreen', () => {
it('Tests each panel type in the panel edit view to ensure no crash', () => {
e2e.flows.addDashboard();
// TODO: Try and use e2e.flows.addPanel() instead of block below
try {
e2e.components.PageToolbar.itemButton('Add button').should('be.visible');
e2e.components.PageToolbar.itemButton('Add button').click();
} catch (e) {
// Depending on the screen size, the "Add panel" button might be hidden
e2e.components.PageToolbar.item('Show more items').click();
e2e.components.PageToolbar.item('Add button').last().click();
}
e2e.pages.AddDashboard.itemButton('Add new visualization menu item').should('be.visible');
e2e.pages.AddDashboard.itemButton('Add new visualization menu item').click();
e2e.flows.addPanel({
dataSourceName: 'gdev-testdata',
timeout: 10000,
visitDashboardAtStart: false,
});
cy.window().then((win: Cypress.AUTWindow & { grafanaBootData: GrafanaBootConfig['bootData'] }) => {
// Loop through every panel type and ensure no crash