mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
7bca69849f
* Mark Scenes feature toggles as GA * Move old arch e2e to a new folder * Run E2E on scenes by default * Upgrade e2e-selectors to ensure the tests in Playwright works
25 lines
791 B
TypeScript
25 lines
791 B
TypeScript
import { selectors } from '@grafana/e2e-selectors';
|
|
|
|
import { e2e } from '../utils';
|
|
import { fromBaseUrl } from '../utils/support/url';
|
|
|
|
describe('Embedded dashboard', function () {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
|
});
|
|
|
|
it('open test page', function () {
|
|
cy.visit(fromBaseUrl('/dashboards/embedding-test'));
|
|
|
|
// Verify pie charts are rendered
|
|
cy.get(
|
|
`[data-viz-panel-key="panel-11"] [data-testid^="${selectors.components.Panels.Visualization.PieChart.svgSlice}"]`
|
|
).should('have.length', 5);
|
|
|
|
// Verify no url sync
|
|
e2e.components.TimePicker.openButton().click();
|
|
cy.get('label:contains("Last 1 hour")').click();
|
|
cy.url().should('eq', fromBaseUrl('/dashboards/embedding-test'));
|
|
});
|
|
});
|