mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* remove scenario wrapping in cypress tests * remove more hardcoded logins * don't forget the various suite! * make sure we log in for every test * fix afterAll revert * stability
23 lines
857 B
TypeScript
23 lines
857 B
TypeScript
import { E2ESelectors, Selectors, selectors } from '@grafana/e2e-selectors';
|
|
|
|
import * as flows from './flows';
|
|
import { e2eFactory } from './support';
|
|
import { benchmark } from './support/benchmark';
|
|
import { getScenarioContext, setScenarioContext } from './support/scenarioContext';
|
|
import * as typings from './typings';
|
|
|
|
export const e2e = {
|
|
env: (args: string) => Cypress.env(args),
|
|
config: () => Cypress.config(),
|
|
blobToBase64String: (blob: Blob) => Cypress.Blob.blobToBase64String(blob),
|
|
imgSrcToBlob: (url: string) => Cypress.Blob.imgSrcToBlob(url),
|
|
benchmark,
|
|
pages: e2eFactory({ selectors: selectors.pages }),
|
|
typings,
|
|
components: e2eFactory({ selectors: selectors.components }),
|
|
flows,
|
|
getScenarioContext,
|
|
setScenarioContext,
|
|
getSelectors: <T extends Selectors>(selectors: E2ESelectors<T>) => e2eFactory({ selectors }),
|
|
};
|