mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* Standarize e2e for addDashbaord e2e flow
* WIP: Duplicate e2e dashboard flows and smoke test for scene e2e tests
* Fix autoformatting mistake for bash file
* Enable dashboardScene using local storage and only for the scene folder
* Add missing folders
* Set the feature toggle in the before of all tests
* Revert "Standarize e2e for addDashbaord e2e flow"
This reverts commit 6b9ea9d5a4
.
* Add missing e2e selectors to NavToolbarActions, and modify addDashboard scene flow
* e2e: panels_smokescreen.spec.ts migrated
* e2e smokeTestSceneario migrated
* Start migrating dashbaord-suite e2e
* WIP create variable types
* adjust tests for scenes
* restore dashboard json file
* update scenes version
* restore pkg/build/wire/internal/wire/testdata modifications
* finalising test adjusments
* restore pkg/build/wire/internal/wire/testdata files
* add latest scenes version and update tests
* add drone setup for dashboard scenes tests
* update to latest scenes version
* adjust drone errors
* adjust indentation in drone yml file
* drone adjustments
* add github workflow to run scenes e2e
* restore drone file
* adjust github workflow
* wip: github workflow adjustments
* test remove gpu
* bump
* undo formating changes
* wip: github workflow debugging
* adjusting flaky tests
* update to latest scenes
* clean up workflow file
* adjust flaky test
* clean up pr
* finalise worflow logic and add to codeowners
* clean up launching old arch dashboards e2e separately
---------
Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
Co-authored-by: Jeff Levin <jeff@levinology.com>
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import { GrafanaBootConfig } from '@grafana/runtime';
|
|
|
|
import { e2e } from '../utils';
|
|
|
|
describe('Panels smokescreen', () => {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'), false);
|
|
});
|
|
|
|
after(() => {
|
|
e2e.flows.revertAllChanges();
|
|
});
|
|
|
|
it('Tests each panel type in the panel edit view to ensure no crash', () => {
|
|
e2e.flows.addDashboard();
|
|
|
|
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
|
|
Object.entries(win.grafanaBootData.settings.panels).forEach(([_, panel]) => {
|
|
// TODO: Remove Flame Graph check as part of addressing #66803
|
|
if (!panel.hideFromList && panel.state !== 'deprecated') {
|
|
e2e.components.PanelEditor.toggleVizPicker().click();
|
|
e2e.components.PluginVisualization.item(panel.name).scrollIntoView().should('be.visible').click();
|
|
|
|
e2e.components.PanelEditor.toggleVizPicker().should((e) => expect(e).to.contain(panel.name));
|
|
// TODO: Come up with better check / better failure messaging to clearly indicate which panel failed
|
|
cy.contains('An unexpected error happened').should('not.exist');
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|