mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
E2E: Fix path for importDashboards (#40111)
* Small e2e fix for importDashboards
This commit is contained in:
parent
24fa93bd58
commit
47f09fca8d
@ -26,7 +26,8 @@ Cypress.Commands.add('readProvisions', (filePaths: string[]) => {
|
||||
|
||||
Cypress.Commands.add('getJSONFilesFromDir', (dirPath: string) => {
|
||||
return cy.task('getJSONFilesFromDir', {
|
||||
projectPath: Cypress.config().parentTestsFolder,
|
||||
// CWD is set for plugins in the cli but not for the main grafana repo: https://github.com/grafana/grafana/blob/main/packages/grafana-e2e/cli.js#L12
|
||||
projectPath: Cypress.env('CWD') || Cypress.config().parentTestsFolder,
|
||||
relativePath: dirPath,
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user