Chore: Remove more stuff from the e2e object (#75513)

* cut down the e2e object more :)

* undo changes in grafana-e2e

* couple more things to undo in grafana-e2e
This commit is contained in:
Ashley Harrison
2023-09-27 11:33:00 +01:00
committed by GitHub
parent 2a9ef4cce5
commit d8e99e2bb5
54 changed files with 75 additions and 77 deletions

View File

@@ -31,7 +31,7 @@ export const benchmark = ({
} else {
describe(name, () => {
beforeEach(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
e2e.flows.importDashboards(dashboard.folder, 1000, dashboard.skipPanelValidation);
});

View File

@@ -1,6 +1,6 @@
import { e2e } from '../index';
const getBaseUrl = () => e2e.env('BASE_URL') || e2e.config().baseUrl || 'http://localhost:3000';
const getBaseUrl = () => Cypress.env('BASE_URL') || Cypress.config().baseUrl || 'http://localhost:3000';
export const fromBaseUrl = (url = '') => new URL(url, getBaseUrl()).href;