mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* adjust drone to run scenes e2e alongside * adjust typo in scenes e2e folder name for consistency * fix select options selector inssue with scenes bump * skip tests in old arch that result in race conditions * skip more flaky tests due to race conditions * skip scenes e2e instead of old arch in case of race condition * update to latest scenes version * skip test due to race conditions * skip flaky race condition test * modify and sign drone pipeline * remove unnecessary edits * resolve merge conflicts and regenerate drone.yml
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'));
|
|
});
|
|
});
|