Commit 6558df83 by Steven Vachon Committed by GitHub

@grafana/e2e: fix module paths for runtime (#24121)

... because the "src" dir only exists at compile time.
parent 4ddc0e02
......@@ -7,8 +7,7 @@ import { e2eScenario, ScenarioArguments } from './support/scenario';
import { Flows } from './flows';
import { getScenarioContext, setScenarioContext } from './support/scenarioContext';
import { e2eFactory } from './support';
import { Pages } from '@grafana/e2e-selectors/src/selectors/pages';
import { Components } from '@grafana/e2e-selectors/src/selectors/components';
import { selectors } from '@grafana/e2e-selectors';
const e2eObject = {
env: (args: string) => Cypress.env(args),
......@@ -16,8 +15,8 @@ const e2eObject = {
blobToBase64String: (blob: any) => Cypress.Blob.blobToBase64String(blob),
imgSrcToBlob: (url: string) => Cypress.Blob.imgSrcToBlob(url),
scenario: (args: ScenarioArguments) => e2eScenario(args),
pages: e2eFactory({ selectors: Pages }),
components: e2eFactory({ selectors: Components }),
pages: e2eFactory({ selectors: selectors.pages }),
components: e2eFactory({ selectors: selectors.components }),
flows: Flows,
getScenarioContext,
setScenarioContext,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment